]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix missing queue put in error path
authorJens Axboe <axboe@kernel.dk>
Mon, 15 Nov 2021 21:23:08 +0000 (14:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Nov 2021 00:00:54 +0000 (17:00 -0700)
commitaa8557c286645d40211d7645511f6a35c5edc51c
treea9af8b4f82ad0afa875748aac6be944709158ef4
parent8c17e0c6c6d425c9d20e09777f4d978d296ed568
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: e282e50076a5 ("blk-mq: fix filesystem I/O request allocation")
Reported-and-tested-by: Stephen Smith <stephenmsmith@blueyonder.co.uk>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c