From: heinzm <heinzm@xxxxxxxxxx> Signed-off-by: heinzm <heinzm@xxxxxxxxxx> --- drivers/md/raid1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 0aed74efd758..5c469ce843c8 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1509,6 +1509,7 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio, for (i = 0; i < disks; i++) { struct bio *mbio = NULL; struct md_rdev *rdev = conf->mirrors[i].rdev; + if (!r1_bio->bios[i]) continue; -- 2.41.0