Whamcloud - gitweb
LU-1782 quota: ignore sb_has_quota_active() in OFED's header
[fs/lustre-release.git] / lustre / kernel_patches / patches / md-mmp-unplug-dev-sles11.patch
1 Index: linux-2.6.27.21-0.1/drivers/md/raid5.c
2 ===================================================================
3 --- linux-2.6.27.21-0.1.orig/drivers/md/raid5.c 2009-04-23 02:12:52.000000000 -0600
4 +++ linux-2.6.27.21-0.1/drivers/md/raid5.c      2009-05-22 08:38:38.000000000 -0600
5 @@ -1760,6 +1760,8 @@
6                 bi->bi_next = *bip;
7         *bip = bi;
8         bi->bi_phys_segments++;
9 +       if (bio_rw_flagged(bi, BIO_RW_SYNCIO) && !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);
13  
14 @@ -3513,6 +3515,8 @@
15  
16                 bio_endio(bi, 0);
17         }
18 +       if (bio_rw_flagged(bi, BIO_RW_SYNCIO))
19 +               raid5_unplug_device(q);
20         return 0;
21  }
22