Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7591134 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <jens.axboe@oracle.com>
parent 71982a40
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);