* [patch 02/10] scsi/ide-scsi: replace schedule_timeout() with msleep()
@ 2004-10-21 8:46 janitor
0 siblings, 0 replies; only message in thread
From: janitor @ 2004-10-21 8:46 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, janitor, nacc
Any comments would be appreciated.
Description: Use msleep() 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-max/drivers/scsi/ide-scsi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN drivers/scsi/ide-scsi.c~msleep-drivers_scsi_ide-scsi drivers/scsi/ide-scsi.c
--- linux-2.6.9/drivers/scsi/ide-scsi.c~msleep-drivers_scsi_ide-scsi 2004-10-21 02:41:25.000000000 +0200
+++ linux-2.6.9-max/drivers/scsi/ide-scsi.c 2004-10-21 02:41:25.000000000 +0200
@@ -45,6 +45,7 @@
#include <linux/hdreg.h>
#include <linux/slab.h>
#include <linux/ide.h>
+#include <linux/delay.h>
#include <asm/io.h>
#include <asm/bitops.h>
@@ -1049,7 +1050,7 @@ static int idescsi_eh_reset (struct scsi
do {
set_current_state(TASK_UNINTERRUPTIBLE);
spin_unlock_irq(cmd->device->host->host_lock);
- schedule_timeout(HZ/20);
+ msleep(50);
spin_lock_irq(cmd->device->host->host_lock);
} while ( HWGROUP(drive)->handler );
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-21 8:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 8:46 [patch 02/10] scsi/ide-scsi: replace schedule_timeout() with msleep() janitor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox