Whamcloud - gitweb
LU-13437 lmv: check stripe FID sanity
[fs/lustre-release.git] / lustre / kernel_patches / patches / raid5-mmp-unplug-dev-sles12.patch
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_
6                 bi->bi_next = *bip;
7         *bip = bi;
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. */
11  
12         if (forwrite) {
13                 /* check if page is covered */
14 @@ -4416,6 +4418,9 @@ static void make_discard_request(struct
15                 md_write_end(mddev);
16                 bio_endio(bi, 0);
17         }
18 +
19 +       if (bi->bi_rw & REQ_SYNC)
20 +               md_wakeup_thread(mddev->thread);
21  }
22  
23  static void make_request(struct mddev *mddev, struct bio * bi)