On Tue, 22 Mar 2022 16:06:39 +0800, Xie Yongji wrote: > 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. > > [...] Applied, thanks! [1/1] nbd: Fix hung on disconnect request if socket is closed before commit: 491bf8f236fdeec698fa6744993f1ecf3fafd1a5 Best regards, -- Jens Axboe