Commit 7050d298 authored by Brian King's avatar Brian King Committed by James Bottomley

[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: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent b13320a9
...@@ -2012,7 +2012,7 @@ static ssize_t ipr_store_diagnostics(struct class_device *class_dev, ...@@ -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_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload);
/* Wait for a second for any errors to be logged */ /* Wait for a second for any errors to be logged */
schedule_timeout(HZ); msleep(1000);
} else { } else {
spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags); spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags);
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment