diff options
author | Xie Yongji <[email protected]> | 2022-03-22 16:06:39 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-05-16 06:19:35 -0600 |
commit | 491bf8f236fdeec698fa6744993f1ecf3fafd1a5 (patch) | |
tree | 5c311265ed0616e3909fba381842336c50d1cb87 /scripts/gdb/linux/utils.py | |
parent | c23d47abee3a54e4991ed3993340596d04aabd6a (diff) |
nbd: Fix hung on disconnect request if socket is closed before
When userspace closes the socket before sending a disconnect
request, the following I/O requests will be blocked in
wait_for_reconnect() until dead timeout. This will cause the
following disconnect request also hung on blk_mq_quiesce_queue().
That means we have no way to disconnect a nbd device if there
are some I/O requests waiting for reconnecting until dead timeout.
It's not expected. So let's wake up the thread waiting for
reconnecting directly when a disconnect request is sent.
Reported-by: Xu Jianhai <[email protected]>
Signed-off-by: Xie Yongji <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions