]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jul 2019 13:59:49 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jul 2019 13:59:49 +0000 (15:59 +0200)
added patches:
stable-btrfs-fix-backport-bug-in-d819d97ea025-btrfs-honor-path-skip_locking-in-backref-code.patch

queue-4.14/series
queue-4.14/stable-btrfs-fix-backport-bug-in-d819d97ea025-btrfs-honor-path-skip_locking-in-backref-code.patch [new file with mode: 0644]

index c16bf42801766cd201c03c49718378c1a0d02639..28a6a73c183439c4ab12d7b9a648fb6bde4ef8bd 100644 (file)
@@ -53,3 +53,4 @@ svcrdma-ignore-source-port-when-computing-drc-hash.patch
 mips-fix-bounds-check-virt_addr_valid.patch
 mips-add-missing-ehb-in-mtc0-mfc0-sequence.patch
 dmaengine-imx-sdma-remove-bd_intr-for-channel0.patch
+stable-btrfs-fix-backport-bug-in-d819d97ea025-btrfs-honor-path-skip_locking-in-backref-code.patch
diff --git a/queue-4.14/stable-btrfs-fix-backport-bug-in-d819d97ea025-btrfs-honor-path-skip_locking-in-backref-code.patch b/queue-4.14/stable-btrfs-fix-backport-bug-in-d819d97ea025-btrfs-honor-path-skip_locking-in-backref-code.patch
new file mode 100644 (file)
index 0000000..de9244a
--- /dev/null
@@ -0,0 +1,36 @@
+From sgruszka@redhat.com  Mon Jul  8 15:59:16 2019
+From: Stanislaw Gruszka <sgruszka@redhat.com>
+Date: Mon, 8 Jul 2019 14:01:34 +0200
+Subject: stable/btrfs: fix backport bug in d819d97ea025 ("btrfs: honor path->skip_locking in backref code")
+To: stable@vger.kernel.org
+Cc: linux-btrfs@vger.kernel.org
+Message-ID: <20190708120130.GA25587@redhat.com>
+Content-Disposition: inline
+
+From: Stanislaw Gruszka <sgruszka@redhat.com>
+
+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: Olivier Mazouffre <olivier.mazouffre@ims-bordeaux.fr>
+Fixes: d819d97ea025 ("btrfs: honor path->skip_locking in backref code")
+Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/btrfs/backref.c |    2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/fs/btrfs/backref.c
++++ b/fs/btrfs/backref.c
+@@ -1290,8 +1290,6 @@ again:
+                                       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);