提交 77b0308a 编写于 作者: A Andrew Morton 提交者: Jens Axboe

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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 7fe06326
...@@ -1608,8 +1608,7 @@ static int wait_for_device_to_become_ready(ctlr_info_t *h, ...@@ -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 /* Wait for a bit. do this first, because if we send
* the TUR right away, the reset will just abort it. * the TUR right away, the reset will just abort it.
*/ */
set_current_state(TASK_INTERRUPTIBLE); schedule_timeout_interruptible(waittime);
schedule_timeout(waittime);
count++; count++;
/* Increase wait time with each try, up to a point. */ /* Increase wait time with each try, up to a point. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册