Commit 95febeb
committed
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: b637108 ("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>1 parent 94c4b4f commit 95febeb
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2543 | 2543 | | |
2544 | 2544 | | |
2545 | 2545 | | |
2546 | | - | |
2547 | | - | |
| 2546 | + | |
2548 | 2547 | | |
2549 | 2548 | | |
2550 | 2549 | | |
| |||
2565 | 2564 | | |
2566 | 2565 | | |
2567 | 2566 | | |
2568 | | - | |
2569 | 2567 | | |
2570 | 2568 | | |
2571 | 2569 | | |
| |||
2587 | 2585 | | |
2588 | 2586 | | |
2589 | 2587 | | |
2590 | | - | |
2591 | | - | |
| 2588 | + | |
| 2589 | + | |
2592 | 2590 | | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2596 | 2596 | | |
2597 | 2597 | | |
2598 | 2598 | | |
| |||
0 commit comments