Skip to content

Commit 122381a

Browse files
mjguzikbrauner
authored andcommitted
vfs: use RCU in ilookup
A soft lockup in ilookup was reported when stress-testing a 512-way system [1] (see [2] for full context) and it was verified that not taking the lock shifts issues back to mm. [1] https://lore.kernel.org/linux-mm/[email protected]/ [2] https://lore.kernel.org/linux-mm/[email protected]/ Signed-off-by: Mateusz Guzik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 641bb43 commit 122381a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/inode.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,9 +1570,7 @@ struct inode *ilookup(struct super_block *sb, unsigned long ino)
15701570
struct hlist_head *head = inode_hashtable + hash(sb, ino);
15711571
struct inode *inode;
15721572
again:
1573-
spin_lock(&inode_hash_lock);
1574-
inode = find_inode_fast(sb, head, ino, true);
1575-
spin_unlock(&inode_hash_lock);
1573+
inode = find_inode_fast(sb, head, ino, false);
15761574

15771575
if (inode) {
15781576
if (IS_ERR(inode))

0 commit comments

Comments
 (0)