Skip to content
Commit c4ae0c65 authored by Eric Dumazet's avatar Eric Dumazet Committed by Al Viro
Browse files

vfs: avoid call to inode_lru_list_del() if possible



inode_lru_list_del() is expensive because of per superblock lru locking,
while some inodes are not in lru list.

Adding a check in iput_final() can speedup pipe/sockets workloads on
SMP.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f2ee7abf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment