diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-06-02 08:51:30 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-06-02 08:51:30 -0400 |
commit | 77b0308a0778861111184e097533000f7a458c37 (patch) | |
tree | b879244a8271bbe307e015a931b28e0fb31d338f /drivers/block | |
parent | 7fe063268e73681cdca1a6496a25f93d3332f517 (diff) |
cciss: use schedule_timeout_interruptible()
Use schedule_timeout_interruptible() instead of open-coding the set and
schedule parts.
Cc: Mike Miller <mikem@beardog.cca.cpqcorp.net>
Cc: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss_scsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c index 8575c48c8917..2edfc9b644eb 100644 --- a/drivers/block/cciss_scsi.c +++ b/drivers/block/cciss_scsi.c | |||
@@ -1608,8 +1608,7 @@ static int wait_for_device_to_become_ready(ctlr_info_t *h, | |||
1608 | /* Wait for a bit. do this first, because if we send | 1608 | /* Wait for a bit. do this first, because if we send |
1609 | * the TUR right away, the reset will just abort it. | 1609 | * the TUR right away, the reset will just abort it. |
1610 | */ | 1610 | */ |
1611 | set_current_state(TASK_INTERRUPTIBLE); | 1611 | schedule_timeout_interruptible(waittime); |
1612 | schedule_timeout(waittime); | ||
1613 | count++; | 1612 | count++; |
1614 | 1613 | ||
1615 | /* Increase wait time with each try, up to a point. */ | 1614 | /* Increase wait time with each try, up to a point. */ |