mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:24:39 +01:00
btrfs: update check_skip variable after unlocking current node
There's no need to update the local variable 'check_skip' to false inside the critical section delimited by the lock of the current node, so do it after unlocking the node. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
5d8222a50a
commit
c2b2504ece
1 changed files with 1 additions and 1 deletions
|
|
@ -1435,8 +1435,8 @@ static noinline void unlock_up(struct btrfs_path *path, int level,
|
|||
}
|
||||
|
||||
if (i >= lowest_unlock && i > skip_level) {
|
||||
check_skip = false;
|
||||
btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]);
|
||||
check_skip = false;
|
||||
path->locks[i] = 0;
|
||||
if (write_lock_level &&
|
||||
i > min_write_lock_level &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue