* [patch 2/4] md/raid1: replace schedule_timeout() with msleep_interruptible()
@ 2004-09-23 20:49 janitor
0 siblings, 0 replies; only message in thread
From: janitor @ 2004-09-23 20:49 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, janitor, nacc
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 <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---
linux-2.6.9-rc2-bk7-max/drivers/md/raid1.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/md/raid1.c~msleep_interruptible-drivers_md_raid1 drivers/md/raid1.c
--- linux-2.6.9-rc2-bk7/drivers/md/raid1.c~msleep_interruptible-drivers_md_raid1 2004-09-21 21:16:50.000000000 +0200
+++ linux-2.6.9-rc2-bk7-max/drivers/md/raid1.c 2004-09-21 21:16:50.000000000 +0200
@@ -1013,7 +1013,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);
/*
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-23 20:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 20:49 [patch 2/4] md/raid1: replace schedule_timeout() with msleep_interruptible() janitor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome