]> git.baikalelectronics.ru Git - kernel.git/commit
locks: give the blocked_hash its own spinlock
authorJeff Layton <jlayton@redhat.com>
Fri, 21 Jun 2013 12:58:20 +0000 (08:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:46 +0000 (12:57 +0400)
commit2662f73023c33057de84d221b87ec288893bf7f1
tree360a8f35cf75f0bbcd1b984a6348f4c9e715e159
parent00d1b791aafb869b5d71dd9d5a095b6541e7cf79
locks: give the blocked_hash its own spinlock

There's no reason we have to protect the blocked_hash and file_lock_list
with the same spinlock. With the tests I have, breaking it in two gives
a barely measurable performance benefit, but it seems reasonable to make
this locking as granular as possible.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/Locking
fs/locks.c