diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-11-16 00:23:08 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-16 03:00:54 +0300 |
commit | 95febeb61bf87ca803a1270498cd4cd61554a68f (patch) | |
tree | a9af8b4f82ad0afa875748aac6be944709158ef4 /block/blk-core.c | |
parent | 94c4b4fd25e6c3763941bdec3ad54f2204afa992 (diff) | |
download | linux-95febeb61bf87ca803a1270498cd4cd61554a68f.tar.xz |
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: b637108a4022 ("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>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions