diff options
author | 2013-06-21 08:58:16 -0400 | |
---|---|---|
committer | 2013-06-29 12:57:43 +0400 | |
commit | 4e8c765d384e549f9b542ea0bd42e2aa227e1404 (patch) | |
tree | 23600131f3c0e8fa0d84707ccb19344f14627804 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | locks: protect most of the file_lock handling with i_lock (diff) | |
download | linux-dev-4e8c765d384e549f9b542ea0bd42e2aa227e1404.tar.xz linux-dev-4e8c765d384e549f9b542ea0bd42e2aa227e1404.zip |
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: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions