[md PATCH 7/8] Enable OLCE for external IMSM metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From c16036b925f2929df6eaabeaa451fc5361ec7f0f Mon Sep 17 00:00:00 2001
From: Adam Kwolek <adam.kwolek@xxxxxxxxx>
Date: Thu, 18 Feb 2010 11:27:51 +0100
Subject: [PATCH] OLCE: Fix for bio I/O error

Changes to be committed:
	modified:   raid5.c
During OLCE/reshape when delta_disks is greatrer than 0, none of request was rescheduled.
This leads to bio I/O error as requests confilcts with reshape process

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---
 drivers/md/raid5.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 724798e..656a852 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3920,6 +3920,13 @@ static int make_request(struct request_queue *q, struct bio * bi)
 					spin_unlock_irq(&conf->device_lock);
 					schedule();
 					goto retry;
+				} else {
+					if ((mddev->delta_disks > 0) &&
+					    (logical_sector < conf->reshape_safe)) {
+						spin_unlock_irq(&conf->device_lock);
+						schedule();
+						goto retry;
+					}
 				}
 			}
 			spin_unlock_irq(&conf->device_lock);
-- 
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux