1 Index: linux-3.12.44-52.10/drivers/md/raid5.c
2 ===================================================================
3 --- linux-3.12.44-52.10.orig/drivers/md/raid5.c
4 +++ linux-3.12.44-52.10/drivers/md/raid5.c
5 @@ -2530,6 +2530,8 @@ static int add_stripe_bio(struct stripe_
8 raid5_inc_bi_active_stripes(bi);
9 + if ((bi->bi_rw & REQ_SYNC) && !forwrite)
10 + clear_bit(R5_UPTODATE, &sh->dev[dd_idx].flags); /* force to read from disk. */
13 /* check if page is covered */
14 @@ -4416,6 +4418,9 @@ static void make_discard_request(struct
19 + if (bi->bi_rw & REQ_SYNC)
20 + md_wakeup_thread(mddev->thread);
23 static void make_request(struct mddev *mddev, struct bio * bi)