diff options
author | 2017-09-01 16:14:30 -0600 | |
---|---|---|
committer | 2017-10-30 12:27:55 +0100 | |
commit | 49e83f5735cf1aca03ca8b4eadca475c1f3b0b14 (patch) | |
tree | 39541ef4b34a4fcbd9efb91ed90dac62f5567e4c /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | Btrfs: use wait_event instead of a single function (diff) | |
download | wireguard-linux-49e83f5735cf1aca03ca8b4eadca475c1f3b0b14.tar.xz wireguard-linux-49e83f5735cf1aca03ca8b4eadca475c1f3b0b14.zip |
Btrfs: protect conditions within root->log_mutex while waiting
Both wait_for_commit() and wait_for_writer() are checking the
condition out of the mutex lock.
This refactors code a bit to be lock safe.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions