diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-12 06:38:02 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-25 08:50:24 +0100 |
commit | f9f677c5f723394170fa838b856602476150948d (patch) | |
tree | 5b27d97dc3f8092b6d83ae825f1425ea0dbfa7dd | |
parent | get rid of DCACHE_GENOCIDE (diff) | |
download | linux-f9f677c5f723394170fa838b856602476150948d.tar.xz linux-f9f677c5f723394170fa838b856602476150948d.zip |
d_alloc_parallel(): in-lookup hash insertion doesn't need an RCU variant
We only search in the damn thing under hlist_bl_lock(); RCU variant
of insertion was, IIRC, pretty much cargo-culted - mea culpa...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 8473c8f0ce22..82d086185703 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2692,7 +2692,7 @@ retry: /* we can't take ->d_lock here; it's OK, though. */ new->d_flags |= DCACHE_PAR_LOOKUP; new->d_wait = wq; - hlist_bl_add_head_rcu(&new->d_u.d_in_lookup_hash, b); + hlist_bl_add_head(&new->d_u.d_in_lookup_hash, b); hlist_bl_unlock(b); return new; mismatch: |