ext2: Avoid parsing options under a spinlock
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ext2: Parse mount options into a dedicated structurefs/ | +76 | 0 replies | |
| 2/2 | ext2: Fix possible sleep in atomic during mount option parsingfs/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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