Skip to content
Snippets Groups Projects
Commit d970958b authored by Hou Pu's avatar Hou Pu Committed by Jens Axboe
Browse files

nbd: enable replace socket if only one connection is configured


Nbd server with multiple connections could be upgraded since
560bc4b3 (nbd: handle dead connections). But if only one conncection
is configured, after we take down nbd server, all inflight IO
would finally timeout and return error. We could requeue them
like what we do with multiple connections and wait for new socket
in submit path.

Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarHou Pu <houpu@bytedance.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 91dfa2dd
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment