Patch "dm mirror: fix read error on recovery after default leg failure" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
dm mirror: fix read error on recovery after default leg failure
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
dm-mirror-fix-read-error-on-recovery-after-default-leg-failure.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
dcb2ff56417362c31f6b430c3c531a84581e8721Mon Sep 17 00:00:00 2001
From: Heinz Mauelshagen <[email protected]>
Date: Mon, 10 Oct 2016 17:58:32 +0200
Subject: dm mirror: fix read error on recovery after default leg failure
From: Heinz Mauelshagen <[email protected]>
commit dcb2ff56417362c31f6b430c3c531a84581e8721 upstream.
If a default leg has failed, any read will cause a new operational default leg to be selected and the read is resubmitted. But until now the read will return failure even though it was successful due to resubmission. The reason for this is bio->bi_error was not being cleared before resubmitting the bio.
Fix by clearing bio->bi_error before resubmission.
--- drivers/md/dm-raid1.c | 1 + 1 file changed, 1 insertion(+)
drivers/md/dm-raid1.c +1 -0
@@ -1288,6 +1288,7 @@ static int mirror_end_io(struct dm_targedm_bio_restore (bd, bio); bio_record->details.bi_bdev =NULL ; + bio->bi_error =0 ;queue_bio (ms, bio, rw);return DM_ENDIO_INCOMPLETE ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/dm-mirror-fix-read-error-on-recovery-after-default-leg-failure.patch