Skip to content

ext2: Avoid parsing options under a spinlock

Jan Kara linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext2: Parse mount options into a dedicated structurefs/ext2/super.c+76 -810 replies
2/2ext2: Fix possible sleep in atomic during mount option parsingfs/ext2/super.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ext2: Avoid parsing options under a spinlock

Hello,

as Jia-Ju Bai pointed out, match_int() can sleep due to GFP_KERNEL allocation. Change ext2 mount option parsing so that it does not happen under sbi->s_lock spinlock. That is a reasonable change anyway and as a sideeffect we don't have to restore old options if new options cannot be used for some reason. If nobody objects, I'll push these patches through my tree.

Honza