]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: enable replace socket if only one connection is configured
authorHou Pu <houpu.main@gmail.com>
Fri, 28 Feb 2020 06:40:29 +0000 (01:40 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Mar 2020 13:58:39 +0000 (07:58 -0600)
commitd5046644a1e2e119d886eb97d67b0c403b46da18
tree5f48a5c5827cea9f3ff93844d4736e929c398938
parentc97c74b8922833b4c00c0d4a9b3b9863ebcffc0d
nbd: enable replace socket if only one connection is configured

Nbd server with multiple connections could be upgraded since
e8a6aba (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: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Hou Pu <houpu@bytedance.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c