The patch titled md: handle writes to broken raid10 arrays gracefully has been added to the -mm tree. Its filename is md-handle-writes-to-broken-raid10-arrays-gracefully.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ 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> Cc: Neil Brown <neilb@xxxxxxx> 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 @@ -887,6 +887,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 md-handle-writes-to-broken-raid10-arrays-gracefully.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