1 Index: linux-2.6.16.60-0.33/drivers/md/raid5.c
2 ===================================================================
3 --- linux-2.6.16.60-0.33.orig/drivers/md/raid5.c
4 +++ linux-2.6.16.60-0.33/drivers/md/raid5.c
5 @@ -900,6 +900,8 @@ static int add_stripe_bio(struct stripe_
8 bi->bi_phys_segments ++;
9 + if (bio_sync(bi) && !forwrite)
10 + clear_bit(R5_UPTODATE, &sh->dev[dd_idx].flags); /* force to read from disk. */
11 spin_unlock_irq(&conf->device_lock);
12 spin_unlock(&sh->lock);
14 @@ -1617,6 +1619,8 @@ static int make_request (request_queue_t
15 bi->bi_end_io(bi, bytes, 0);
17 spin_unlock_irq(&conf->device_lock);
19 + raid5_unplug_device(q);