]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/inode.c
vfs: avoid taking inode_hash_lock on pipes and sockets
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 Jul 2011 04:41:09 +0000 (06:41 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Aug 2011 05:41:17 +0000 (01:41 -0400)
commitf2ee7abf4c40c8e6bffced923a7c01ea2d1f6c97
tree3c7ec119cf89f82737c55235ff7881ebeed9408f
parentb12362bdb61a230a67daa77bcd2a11e59b2802e1
vfs: avoid taking inode_hash_lock on pipes and sockets

Some inodes (pipes, sockets, ...) are not hashed, no need to take
contended inode_hash_lock at dismantle time.

nice speedup on SMP machines on socket intensive workloads.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c
include/linux/fs.h