]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 11:49:40 +0000 (12:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 11:49:40 +0000 (12:49 +0100)
added patches:
revert-gfs2-fix-use-of-bio_chain.patch

queue-6.1/revert-gfs2-fix-use-of-bio_chain.patch [new file with mode: 0644]
queue-6.1/series

diff --git a/queue-6.1/revert-gfs2-fix-use-of-bio_chain.patch b/queue-6.1/revert-gfs2-fix-use-of-bio_chain.patch
new file mode 100644 (file)
index 0000000..d9d85aa
--- /dev/null
@@ -0,0 +1,36 @@
+From 469d71512d135907bf5ea0972dfab8c420f57848 Mon Sep 17 00:00:00 2001
+From: Andreas Gruenbacher <agruenba@redhat.com>
+Date: Mon, 12 Jan 2026 11:47:35 +0100
+Subject: Revert "gfs2: Fix use of bio_chain"
+
+From: Andreas Gruenbacher <agruenba@redhat.com>
+
+commit 469d71512d135907bf5ea0972dfab8c420f57848 upstream.
+
+This reverts commit 8a157e0a0aa5143b5d94201508c0ca1bb8cfb941.
+
+That commit incorrectly assumed that the bio_chain() arguments were
+swapped in gfs2.  However, gfs2 intentionally constructs bio chains so
+that the first bio's bi_end_io callback is invoked when all bios in the
+chain have completed, unlike bio chains where the last bio's callback is
+invoked.
+
+Fixes: 8a157e0a0aa5 ("gfs2: Fix use of bio_chain")
+Cc: stable@vger.kernel.org
+Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/gfs2/lops.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/fs/gfs2/lops.c
++++ b/fs/gfs2/lops.c
+@@ -491,7 +491,7 @@ static struct bio *gfs2_chain_bio(struct
+       new = bio_alloc(prev->bi_bdev, nr_iovecs, prev->bi_opf, GFP_NOIO);
+       bio_clone_blkg_association(new, prev);
+       new->bi_iter.bi_sector = bio_end_sector(prev);
+-      bio_chain(prev, new);
++      bio_chain(new, prev);
+       submit_bio(prev);
+       return new;
+ }
index 25be01389ae96f30af28b139c8f1257387e0cd8d..da626167bdc088db2b6d2d79cdbe2e62060ce61b 100644 (file)
@@ -1,2 +1,3 @@
 firmware-imx-scu-irq-set-mu_resource_id-before-get-handle.patch
 efi-cper-fix-cper_bits_to_str-buffer-handling-and-return-value.patch
+revert-gfs2-fix-use-of-bio_chain.patch