* [PATCH] Disable raid5 handling of read-ahead
@ 2003-08-11 4:28 NeilBrown
0 siblings, 0 replies; only message in thread
From: NeilBrown @ 2003-08-11 4:28 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-raid
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(-)
diff ./drivers/md/raid5.c~current~ ./drivers/md/raid5.c
--- ./drivers/md/raid5.c~current~ 2003-08-11 09:01:44.000000000 +1000
+++ ./drivers/md/raid5.c 2003-08-11 09:01:44.000000000 +1000
@@ -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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-11 4:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11 4:28 [PATCH] Disable raid5 handling of read-ahead NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).