Skip to content

RFC fs/inode.c: optimization for inode lock usage

Guo Chao linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 RFC Latest4 patches 12 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fs/inode.c: do not take i_lock on newly allocated inodefs/inode.c+0 -60 replies
2/4fs/inode.c: do not take i_lock in __(insert|remove)_inode_hashfs/inode.c+0 -40 replies
3/4fs/inode.c: do not take i_lock when identify an inodefs/inode.c+5 -110 replies
4/4fs/inode.c: always take i_lock before calling filesystem's test() methodfs/inode.c+4 -20 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [RFC v4 Patch 0/4] fs/inode.c: optimization for inode lock usage

This patchset optimizes several places which take the per inode spin lock. They have not been fully tested yet, thus they are marked as RFC.

I do limited tests after all patches applied: use two 'find' to traverse the filesystems and touch all files in parallel. This runs for several days in a virtual machine, no suspicious log appears.

Guo Chao (4):
fs/inode.c: do not take i_lock on newly allocated inode fs/inode.c: do not take i_lock in __(insert|remove)_inode_hash fs/inode.c: do not take i_lock when identify an inode fs/inode.c: always take i_lock before calling filesystem's test()
method

 fs/inode.c |   32 +++++++++-----------------------
 1 file changed, 9 insertions(+), 23 deletions(-)
Signature · 1 line
1.7.9.5