Skip to content

RFC fs/namespace: defer RCU sync for MNT_DETACH umount

Lucas Karpinski linux-fsdevel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest1 patch 24 repliesIn review
  2. v2 RFC1 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Removed unneeded code for lazy umount case.
- Don't block within interrupt context.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1fs/namespace: remove RCU sync for MNT_DETACH umountfs/namespace.c+8 -124 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC v3 0/1] fs/namespace: defer RCU sync for MNT_DETACH umount

Hi all,

Attached is v3 of the umount optimization. Please take a look at v1 for the original introduction to the problem. Al made it clear in the RFC v1 that if a filesystem is shut down by umount(2), that the shut down needs to be completed before the return from the syscall. In the RFC v2, it was pointed out that call_rcu can block within an interrupt context. This RFC v3 addresses both that and removes unneccesary code by taking advantage of mntput for the cleanup of lazy umounts.

Lucas

v3:
- Removed unneeded code for lazy umount case.
- Don't block within interrupt context.
v2:
- Only defer releasing umount'ed filesystems for lazy umounts v1:
https://lore.kernel.org/all/[email protected]/

Lucas Karpinski (1):
fs/namespace: remove RCU sync for MNT_DETACH umount

 fs/namespace.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.45.2