Commit c0dbd11
fs: actually hold the namespace semaphore
Don't use a scoped guard that only protects the next statement.
Use a regular guard to make sure that the namespace semaphore is held
across the whole function.
Signed-off-by: Christian Brauner <[email protected]>
Reported-by: Leon Romanovsky <[email protected]>
Link: https://lore.kernel.org/all/20250401170715.GA112019@unreal/
Fixes: db04662 ("fs: allow detached mounts in clone_private_mount()")
Signed-off-by: Linus Torvalds <[email protected]>1 parent 56770e2 commit c0dbd11
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
2481 | | - | |
| 2481 | + | |
| 2482 | + | |
2482 | 2483 | | |
2483 | 2484 | | |
2484 | 2485 | | |
| |||
0 commit comments