Skip to content

Commit f9f677c

Browse files
author
Al Viro
committed
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>
1 parent 5785160 commit f9f677c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ struct dentry *d_alloc_parallel(struct dentry *parent,
26922692
/* we can't take ->d_lock here; it's OK, though. */
26932693
new->d_flags |= DCACHE_PAR_LOOKUP;
26942694
new->d_wait = wq;
2695-
hlist_bl_add_head_rcu(&new->d_u.d_in_lookup_hash, b);
2695+
hlist_bl_add_head(&new->d_u.d_in_lookup_hash, b);
26962696
hlist_bl_unlock(b);
26972697
return new;
26982698
mismatch:

0 commit comments

Comments
 (0)