Skip to content

Commit

Permalink
cciss: use schedule_timeout_interruptible()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jens Axboe committed Jun 2, 2009
1 parent 7fe0632 commit 77b0308
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/cciss_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,7 @@ static int wait_for_device_to_become_ready(ctlr_info_t *h,
/* Wait for a bit. do this first, because if we send
* the TUR right away, the reset will just abort it.
*/
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(waittime);
schedule_timeout_interruptible(waittime);
count++;

/* Increase wait time with each try, up to a point. */
Expand Down

0 comments on commit 77b0308

Please sign in to comment.