lkml.org 
[lkml]   [2017]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH/RFC] VFS: don't keep disconnected dentries on d_anon
On Wed, Dec 20, 2017 at 2:45 PM, NeilBrown <neilb@suse.com> wrote:
>
> We could just leave the code unchanged, but apart from that being
> potentially confusing, the (unfair) bit-spin-lock which protects
> s_anon can become a bottle neck when lots of disconnected dentries are
> being created.
>
> So this patch renames s_anon to s_roots, and stops storing
> disconnected dentries on the list. Only dentries obtained with
> d_obtain_root() are now stored on this list. There are many fewer of
> these (only NFS and NILFS2 use the call, and only during filesystem
> mount) so contention on the bit-lock will not be a problem.

Thanks, Neil. This is much nicer than the magical special case patch
for s_anon bitlock.

Al, I'm going to assume I'll get this through your vfs tree (with
whatever edits from the comments people made).

Linus

\
 
 \ /
  Last update: 2017-12-21 01:58    [W:0.045 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site