Skip to content

autofs4: support RCU-walk

NeilBrown autofs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6autofs4: remove unused autofs4_ispending()fs/autofs4/autofs_i.h+0 -141 reply
2/6autofs4: remove a redundant assignmentfs/autofs4/expire.c+0 -11 reply
3/6autofs4: allow RCU-walk to walk through autofs4.fs/autofs4/autofs_i.h fs/autofs4/dev-ioctl.c fs/autofs4/expire.c +1 more+34 -188 replies
4/6autofs4: factor should_expire() out of autofs4_expire_indirect.fs/autofs4/expire.c+79 -746 replies
5/6autofs4: avoid taking fs_lock during rcu-walkfs/autofs4/autofs_i.h fs/autofs4/expire.c+42 -81 reply
6/6autofs4: don't take spinlock when not needed in autofs4_lookup_expiringfs/autofs4/root.c+2 -02 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchIan Kent
1/6A-b
2/6A-b
3/6A-b
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] autofs4: support RCU-walk

autofs4 currently doesn't support RCU-walk - it immediately aborts any attempt at RCU-walk to force REF-walk for path name lookup.

This can cause a significant performance impact on multi-core systems.
I have a client with a test case which spends >80% of its time waiting for spinlocks with a "make -j 40" on a 40 core system.

This patchset aims to remove most of these spinlocks. To be fully effective in the particular case it needs a second patch set which makes NFS RCU-walk friendly, but one thing at a time.

This has only been lightly tested so far so I'm really after feed-back rather than to have the patch set accepted, though the first two patches are trivial and could be taken immediately.

The last two patches are the most interesting so review comments on those are particularly welcome.

Thanks,
NeilBrown

---

NeilBrown (6):
autofs4: remove unused autofs4_ispending()
autofs4: remove a redundant assignment
autofs4: allow RCU-walk to walk through autofs4.
autofs4: factor should_expire() out of autofs4_expire_indirect.
autofs4: avoid taking fs_lock during rcu-walk
autofs4: don't take spinlock when not needed in autofs4_lookup_expiring

 fs/autofs4/autofs_i.h  |   20 +----
 fs/autofs4/dev-ioctl.c |    2 -
 fs/autofs4/expire.c    |  192 +++++++++++++++++++++++++++++-------------------
 fs/autofs4/root.c      |   46 ++++++++----
 4 files changed, 151 insertions(+), 109 deletions(-)
Signature · 1 line
Signature