Whamcloud - gitweb
LU-12561 kernel: Remove unused patches
[fs/lustre-release.git] / lustre / kernel_patches / patches / raid5-mmp-unplug-dev-rhel6.patch
diff --git a/lustre/kernel_patches/patches/raid5-mmp-unplug-dev-rhel6.patch b/lustre/kernel_patches/patches/raid5-mmp-unplug-dev-rhel6.patch
deleted file mode 100644 (file)
index 54ca60e..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-Force MD devices to pass SYNC reads directly to the disk
-instead of handling from cache.  This is needed for MMP
-on MD RAID devices, and in theory could be accepted in
-the upstream kernel.  Not needed for DMU.
-
-Index: linux-2.6.32-131.0.15.el6.x86_64/drivers/md/raid5.c
-===================================================================
---- linux-2.6.32-131.0.15.el6.x86_64.orig/drivers/md/raid5.c   2011-05-10 21:38:35.000000000 +0300
-+++ linux-2.6.32-131.0.15.el6.x86_64/drivers/md/raid5.c        2011-05-20 08:26:04.000000000 +0300
-@@ -2177,6 +2177,8 @@ static int add_stripe_bio(struct stripe_
-               bi->bi_next = *bip;
-       *bip = bi;
-       raid5_inc_bi_active_stripes(bi);
-+      if (bio_rw_flagged(bi, BIO_RW_SYNCIO) && !forwrite)
-+              clear_bit(R5_UPTODATE, &sh->dev[dd_idx].flags); /* force to read from disk. */
-       if (forwrite) {
-               /* check if page is covered */
-@@ -4132,6 +4134,9 @@ static int make_request(mddev_t *mddev, 
-               bio_endio(bi, 0);
-       }
-+      if (bio_rw_flagged(bi, BIO_RW_SYNCIO))
-+              md_raid5_unplug_device(conf);
-+
-       return 0;
- }