1 --- linux-3.10.0-685.el7.x86_64/drivers/md/raid5.c.orig 2017-06-28 14:06:00.627299582 -0700
2 +++ linux-3.10.0-685.el7.x86_64/drivers/md/raid5.c 2017-06-28 14:08:01.564618793 -0700
3 @@ -3090,6 +3090,8 @@ static int add_stripe_bio(struct stripe_
6 raid5_inc_bi_active_stripes(bi);
7 + if ((bi->bi_rw & REQ_SYNC) && !forwrite)
8 + clear_bit(R5_UPTODATE, &sh->dev[dd_idx].flags); /* force to read from disk. */
11 /* check if page is covered */
12 @@ -5538,6 +5540,9 @@ static bool raid5_make_request(struct md
17 + if (bi->bi_rw & REQ_SYNC)
18 + md_wakeup_thread(mddev->thread);