Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c875ac0a authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Greg Kroah-Hartman
Browse files

stable/btrfs: fix backport bug in d819d97e ("btrfs: honor path->skip_locking in backref code")

Upstream commit 38e3eebff643 ("btrfs: honor path->skip_locking in
backref code") was incorrectly backported to 4.14.y . It misses removal
of two lines from original commit, what cause deadlock.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203993


Reported-by: default avatarOlivier Mazouffre <olivier.mazouffre@ims-bordeaux.fr>
Fixes: d819d97e ("btrfs: honor path->skip_locking in backref code")
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93ca6e20
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1290,8 +1290,6 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
					ret = -EIO;
					goto out;
				}
				btrfs_tree_read_lock(eb);
				btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK);
				if (!path->skip_locking) {
					btrfs_tree_read_lock(eb);
					btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK);