From 7050d2980e91cdbb08db548956c8ae8e09ec64ec Mon Sep 17 00:00:00 2001 From: Brian King <brking@us.ibm.com> Date: Sat, 14 Aug 2004 10:11:42 -0400 Subject: [PATCH] [PATCH] ipr: replace schedule_timeout() with msleep() From: Nishanth Aravamudan <nacc@us.ibm.com> Subject: [PATCH] scsi/ipr: replace schedule_timeout() with msleep() Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> --- drivers/scsi/ipr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index b4242dadbb8e..1c2e7ec108fb 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -2012,7 +2012,7 @@ static ssize_t ipr_store_diagnostics(struct class_device *class_dev, wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload); /* Wait for a second for any errors to be logged */ - schedule_timeout(HZ); + msleep(1000); } else { spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags); return -EIO; -- 2.30.9