mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-07 22:03:14 +00:00
block: make blk_abort_queue() ignore non-request based devices
There's nothing to do for those devices, since the timeout handling is based on requests. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
71982a409f
commit
b759113499
@ -211,6 +211,12 @@ void blk_abort_queue(struct request_queue *q)
|
|||||||
struct request *rq, *tmp;
|
struct request *rq, *tmp;
|
||||||
LIST_HEAD(list);
|
LIST_HEAD(list);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Not a request based block device, nothing to abort
|
||||||
|
*/
|
||||||
|
if (!q->request_fn)
|
||||||
|
return;
|
||||||
|
|
||||||
spin_lock_irqsave(q->queue_lock, flags);
|
spin_lock_irqsave(q->queue_lock, flags);
|
||||||
|
|
||||||
elv_abort_queue(q);
|
elv_abort_queue(q);
|
||||||
|
Loading…
Reference in New Issue
Block a user