Commit 11be501a authored by Maximilian Attems's avatar Maximilian Attems Committed by Jens Axboe

[PATCH] scsi/scsi_lib: replace schedule_timeout() with

Any comments would be appreciated.

Description: Use msleep_interruptible() instead of
schedule_timeout() to guarantee the task delays as expected.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent ff1a15f2
......@@ -15,6 +15,7 @@
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
......@@ -1739,7 +1740,7 @@ scsi_device_quiesce(struct scsi_device *sdev)
scsi_run_queue(sdev->request_queue);
while (sdev->device_busy) {
schedule_timeout(HZ/5);
msleep_interruptible(200);
scsi_run_queue(sdev->request_queue);
}
return 0;
......
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