Skip to content
Commit 95febeb6 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: fix missing queue put in error path

If we fail the submission queue checks, we don't put the queue afterwards.
This can cause various issues like stalls on scheduler switch or failure
to remove the device, or like in the original bug report, timeout waiting
for the device on reboot/restart.

While in there, fix a few whitespace discrepancies in the surrounding
code.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=215039


Fixes: b637108a ("blk-mq: fix filesystem I/O request allocation")
Reported-and-tested-by: default avatarStephen Smith <stephenmsmith@blueyonder.co.uk>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 94c4b4fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment