- md-handle-writes-to-broken-raid10-arrays-gracefully.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     md: handle writes to broken raid10 arrays gracefully
has been removed from the -mm tree.  Its filename was
     md-handle-writes-to-broken-raid10-arrays-gracefully.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: md: handle writes to broken raid10 arrays gracefully
From: Arne Redlich <agr@xxxxxxxxxxxxxx>

When writing to a broken array, raid10 currently happily emits empty bio
lists.  IOW, the master bio will never be completed, sending writers to
UNINTERRUPTIBLE_SLEEP forever.

Signed-off-by: Arne Redlich <agr@xxxxxxxxxxxxxx>
Acked-by: Neil Brown <neilb@xxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/md/raid10.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff -puN drivers/md/raid10.c~md-handle-writes-to-broken-raid10-arrays-gracefully drivers/md/raid10.c
--- a/drivers/md/raid10.c~md-handle-writes-to-broken-raid10-arrays-gracefully
+++ a/drivers/md/raid10.c
@@ -917,6 +917,13 @@ static int make_request(struct request_q
 		bio_list_add(&bl, mbio);
 	}
 
+	if (unlikely(!atomic_read(&r10_bio->remaining))) {
+		/* the array is dead */
+		md_write_end(mddev);
+		raid_end_bio_io(r10_bio);
+		return 0;
+	}
+
 	bitmap_startwrite(mddev->bitmap, bio->bi_sector, r10_bio->sectors, 0);
 	spin_lock_irqsave(&conf->device_lock, flags);
 	bio_list_merge(&conf->pending_bio_list, &bl);
_

Patches currently in -mm which might be from agr@xxxxxxxxxxxxxx are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux