nbd: requeue command if the soecket is changed
authorHou Pu <houpu.main@gmail.com>
Fri, 28 Feb 2020 06:40:30 +0000 (01:40 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Mar 2020 14:01:24 +0000 (08:01 -0600)
commit2c272542baee2c3b9e8e3a260db81227ccefe8b5
treee6803e9f379d145c192eb658978ed163638b072d
parentd970958b2d24e9a40b685ad82bf26a291d6f1c25
nbd: requeue command if the soecket is changed

In commit 2da22da5734 (nbd: fix zero cmd timeout handling v2),
it is allowed to reset timer when it fires if tag_set.timeout
is set to zero. If the server is shutdown and a new socket
is reconfigured, the request should be requeued to be processed by
new server instead of waiting for response from the old one.

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