diff options
author | 2018-08-24 17:44:05 +0200 | |
---|---|---|
committer | 2018-10-15 17:23:38 +0200 | |
commit | aa144bfeaa7f87c536ab323edfe2692285343e68 (patch) | |
tree | 071a00c5aeb589f05f8aea309cb9d536a8a252aa /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | btrfs: open code btrfs_after_dev_replace_commit (diff) | |
download | linux-rng-aa144bfeaa7f87c536ab323edfe2692285343e68.tar.xz linux-rng-aa144bfeaa7f87c536ab323edfe2692285343e68.zip |
btrfs: dev-replace: avoid useless lock on error handling path
The exit sequence in btrfs_dev_replace_start does not allow to simply
add a label to the right place so the error handling after starting
transaction failure jumps there. Currently there's a lock that pairs
with the unlock in the section, which is unnecessary and only raises
questions. Add a variable to track the locking status and avoid the
extra locking.
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Anand Jain <anand.jain@oracle.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