Commit 3dd25fa7 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] Disable buggy raid5 handling of read-ahead

raid5 tries to honour RWA_MASK, but messes it up and can return bad data.
Just ignore RAW_MASK for now.
parent 8b49c803
...@@ -1326,7 +1326,7 @@ static int make_request (request_queue_t *q, struct bio * bi) ...@@ -1326,7 +1326,7 @@ static int make_request (request_queue_t *q, struct bio * bi)
(unsigned long long)new_sector, (unsigned long long)new_sector,
(unsigned long long)logical_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) { if (sh) {
add_stripe_bio(sh, bi, dd_idx, (bi->bi_rw&RW_MASK)); add_stripe_bio(sh, bi, dd_idx, (bi->bi_rw&RW_MASK));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment