FAILED: patch "[PATCH] dm persistent data: don't ignore writeback errors" failed to apply to 5.15-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y
git checkout FETCH_HEAD
git cherry-pick -x fa887f2ebee7aff97eb87b3365939616ade09774
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026112546-flirt-danger-e920@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From fa887f2ebee7aff97eb87b3365939616ade09774 Mon Sep 17 00:00:00 2001
From: Mikulas Patocka <[email protected]>
Date: Fri, 6 Nov 2026 19:48:02 +0100
Subject: [PATCH] dm persistent data: don't ignore writeback errors
An error returned by ie_cache_writeback could be silently overwritten by another successful ie_cache_writeback. This commit fixes disk_ll_commit, so that it doesn't ignore the error and returns it immediatelly.
drivers/md/persistent-data/dm-space-map-common.c +6 -3
@@ -1190,17 +1190,20 @@ static dm_block_t disk_ll_max_entries(struct ll_disk *ll)static int disk_ll_commit (struct ll_disk *ll) { -int r =0 ; +int r;unsigned int i;for (i =0 ; i <IE_CACHE_SIZE ; i++) {struct ie_cache *iec = ll->ie_cache + i; -if (iec->valid && iec->dirty) +if (iec->valid && iec->dirty) { r =ie_cache_writeback (ll, iec); +if (unlikely (r)) +return r; + } } -return r; +return 0 ; }int sm_ll_new_disk (struct ll_disk *ll,struct dm_transaction_manager *tm)
Sasha Levin
maintainerPATCH 1/1 dm persistent data: don't ignore writeback errors
From: Mikulas Patocka <[email protected]>
[ Upstream commit fa887f2ebee7aff97eb87b3365939616ade09774 ]
An error returned by ie_cache_writeback could be silently overwritten by another successful ie_cache_writeback. This commit fixes disk_ll_commit, so that it doesn't ignore the error and returns it immediatelly.
--- drivers/md/persistent-data/dm-space-map-common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/md/persistent-data/dm-space-map-common.c +6 -3
@@ -1185,16 +1185,19 @@ static dm_block_t disk_ll_max_entries(struct ll_disk *ll)static int disk_ll_commit (struct ll_disk *ll) { -int r =0 ; +int r;unsigned i;for (i =0 ; i <IE_CACHE_SIZE ; i++) {struct ie_cache *iec = ll->ie_cache + i; -if (iec->valid && iec->dirty) +if (iec->valid && iec->dirty) { r =ie_cache_writeback (ll, iec); +if (unlikely (r)) +return r; + } } -return r; +return 0 ; }int sm_ll_new_disk (struct ll_disk *ll,struct dm_transaction_manager *tm)
Signature · 1 line
2.53.0