Skip to content

Commit

Permalink
block: make blk_abort_queue() ignore non-request based devices
Browse files Browse the repository at this point in the history
There's nothing to do for those devices, since the timeout handling is
based on requests.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Apr 22, 2009
1 parent 71982a4 commit b759113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions block/blk-timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ void blk_abort_queue(struct request_queue *q)
struct request *rq, *tmp;
LIST_HEAD(list);

/*
* Not a request based block device, nothing to abort
*/
if (!q->request_fn)
return;

spin_lock_irqsave(q->queue_lock, flags);

elv_abort_queue(q);
Expand Down

0 comments on commit b759113

Please sign in to comment.