From: NeilBrown Date: Thu, 23 Mar 2006 10:59:22 +0000 (-0800) Subject: [PATCH] DM: Fix bug: BIO_RW_BARRIER requests to md/raid1 hang. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9e71f9c848e669f003b1319da52f03cb8e7d7403;p=openwrt%2Fstaging%2Fblogic.git [PATCH] DM: Fix bug: BIO_RW_BARRIER requests to md/raid1 hang. Both R1BIO_Barrier and R1BIO_Returned are 4 !!!! This means that barrier requests don't get returned (i.e. b_endio called) because it looks like they already have been. Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/raid/raid1.h b/include/linux/raid/raid1.h index 9d5494aaac0f..3009c813d83d 100644 --- a/include/linux/raid/raid1.h +++ b/include/linux/raid/raid1.h @@ -130,6 +130,6 @@ struct r1bio_s { * with failure when last write completes (and all failed). * Record that bi_end_io was called with this flag... */ -#define R1BIO_Returned 4 +#define R1BIO_Returned 6 #endif