From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5B0B378D72; Wed, 21 Jan 2026 18:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769019488; cv=none; b=W2wkbqaqXoz8iDLzE6RQc9tGk8P2ibglYcHhlXyktfJ5DeUfFPSzqyaG+awlER865xoCWoj9UOxf/Y5PPkj9JFVRrTRB9jwg8n/T1FI/96MzgpgNuESvJ6yHDzeCLUbl0jgJPWrFzdGirIScOulv2yJvaDYmSPe4WgjHf06TGAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769019488; c=relaxed/simple; bh=1rjkJtahBBxGsy12X5CQJYTCM/AAo//2uMdhvMex4yY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B2a0sWQwuAbX86uk57pFyjMzmCLOxObQIeVCbEM0VqsUn1SX++q9ZSebLk8akkdIxf2xJUwNqoSAVLo/GgL1SIkg6Vcs6i+GujlzXJMnNSD0b3WZcl2K11dGjp2RkRhzBq+4rgeWlXCSeZMrTqe6pHenUgbwokBfbTekiLnGk8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p5l+lIpx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p5l+lIpx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E066DC4CEF1; Wed, 21 Jan 2026 18:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769019488; bh=1rjkJtahBBxGsy12X5CQJYTCM/AAo//2uMdhvMex4yY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p5l+lIpxAdrDdrDaGV3kCt0XQpbjpNEogyEr3hVBOVRdk1cxRhYgfTUvPTRH2q4IL ysmOvbM1UJbR4A7NqC2J9Onz9uKBDXUomZm26cPVeX0fZ04FIkxAIGk/ql+Uz1kejf 0hOtncWROtKDjKQqATV48fIdWJ2kTfCczFNaYJy0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andreas Gruenbacher Subject: [PATCH 6.12 003/139] Revert "gfs2: Fix use of bio_chain" Date: Wed, 21 Jan 2026 19:14:11 +0100 Message-ID: <20260121181411.579333348@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260121181411.452263583@linuxfoundation.org> References: <20260121181411.452263583@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andreas Gruenbacher 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 Signed-off-by: Greg Kroah-Hartman --- fs/gfs2/lops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@ -485,7 +485,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; }