md/raid10: replace schedule_timeout() with msleep_interruptible()
PATCH 3/4 md/raid10: replace schedule_timeout() with msleep_interruptible()
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-rc2-bk7-max/drivers/md/raid10.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c renamed from drivers/md/raid10.c~msleep_interruptible-drivers_md_raid10 +1 -1
@@ -1358,7 +1358,7 @@ static int sync_request(mddev_t *mddev,* put in a delay to throttle resync. */ if (!go_faster &&waitqueue_active (&conf->wait_resume)) -schedule_timeout (HZ ); +msleep_interruptible (1000 );device_barrier (conf, sector_nr +RESYNC_SECTORS );/* Again, very different code for resync and recovery.
_