mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
7fe063268e
commit
77b0308a07
1 changed files with 1 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue