Skip to content

Commit

Permalink
skd: fixup usage of legacy IO API
Browse files Browse the repository at this point in the history
We need to be using the mq variant of request requeue here.

Fixes: ca33dd9 ("skd: Convert to blk-mq")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Oct 14, 2018
1 parent 3582dd2 commit 6d1f9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/skd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ static void skd_resolve_req_exception(struct skd_device *skdev,

case SKD_CHECK_STATUS_BUSY_IMMINENT:
skd_log_skreq(skdev, skreq, "retry(busy)");
blk_requeue_request(skdev->queue, req);
blk_mq_requeue_request(req, true);
dev_info(&skdev->pdev->dev, "drive BUSY imminent\n");
skdev->state = SKD_DRVR_STATE_BUSY_IMMINENT;
skdev->timer_countdown = SKD_TIMER_MINUTES(20);
Expand All @@ -1426,7 +1426,7 @@ static void skd_resolve_req_exception(struct skd_device *skdev,
case SKD_CHECK_STATUS_REQUEUE_REQUEST:
if ((unsigned long) ++req->special < SKD_MAX_RETRIES) {
skd_log_skreq(skdev, skreq, "retry");
blk_requeue_request(skdev->queue, req);
blk_mq_requeue_request(req, true);
break;
}
/* fall through */
Expand Down

0 comments on commit 6d1f9df

Please sign in to comment.