From: Al Viro Date: Sun, 12 Nov 2023 05:38:02 +0000 (-0500) Subject: d_alloc_parallel(): in-lookup hash insertion doesn't need an RCU variant X-Git-Tag: v6.8-rc1~115^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9f677c5f723394170fa838b856602476150948d;p=thirdparty%2Flinux.git 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 --- diff --git a/fs/dcache.c b/fs/dcache.c index 8473c8f0ce229..82d0861857035 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: