Skip to contentSkip to conversation

Disable raid5 handling of read-ahead

PATCH New NeilBrown 1 participant 1 message Aug 11, 2003 MD RAID

lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 Disable raid5 handling of read-ahead

This patch, against 2.6.0-test3, fixes a data corruption bug in raid5 NeilBrown

### Comments for ChangeSet

raid5 trys to honour RWA_MASK, but messes it up and can return bad data. Just ignore RAW_MASK for now.

----------- Diffstat output ------------

 ./drivers/md/raid5.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid5.c renamed from drivers/md/raid5.c~current~ +1 -1
diff ./drivers/md/raid5.c~current~ ./drivers/md/raid5.c
@@ -1326,7 +1326,7 @@ static int make_request (request_queue_t
 			(unsigned long long)new_sector, 
 			(unsigned long long)logical_sector);
 
-		sh = get_active_stripe(conf, new_sector, pd_idx, (bi->bi_rw&RWA_MASK));
+		sh = get_active_stripe(conf, new_sector, pd_idx, 0/*(bi->bi_rw&RWA_MASK)*/);
 		if (sh) {
 
 			add_stripe_bio(sh, bi, dd_idx, (bi->bi_rw&RW_MASK));