Skip to contentSkip to conversation

Fix bug: BIO_RW_BARRIER requests to md/raid1 hang.

PATCH New NeilBrown 1 participant 1 message Mar 23, 2006 1 message not in the archive MD RAID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20060323143936.13067.patches@notabene

NeilBrown

author
#1 lore raw

PATCH 1/1 Fix bug: BIO_RW_BARRIER requests to md/raid1 hang.

The following fixes a rather embarassing bug in 2.6.16, and so should go into 2.6.16.1, and 2.6.16-rc1.
Thanks,
NeilBrown

### Comments for Changeset

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.

### Diffstat output

 ./include/linux/raid/raid1.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/raid/raid1.h renamed from include/linux/raid/raid1.h~current~ +1 -1
diff ./include/linux/raid/raid1.h~current~ ./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