Skip to content
Commit 4e8c765d authored by Jeff Layton's avatar Jeff Layton Committed by Al Viro
Browse files

locks: avoid taking global lock if possible when waking up blocked waiters



Since we always hold the i_lock when inserting a new waiter onto the
fl_block list, we can avoid taking the global lock at all if we find
that it's empty when we go to wake up blocked waiters.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1c8c601a
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