Files
linux/drivers/block
Josef Bacik 05ee6166d7 nbd: handle unexpected replies better
[ Upstream commit 8f3ea35929 ]

If the server or network is misbehaving and we get an unexpected reply
we can sometimes miss the request not being started and wait on a
request and never get a response, or even double complete the same
request.  Fix this by replacing the send_complete completion with just a
per command lock.  Add a per command cookie as well so that we can know
if we're getting a double completion for a previous event.  Also check
to make sure we dont have REQUEUED set as that means we raced with the
timeout handler and need to just let the retry occur.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:26:25 +02:00
..
2017-09-25 08:56:05 -06:00
2018-09-05 09:26:25 +02:00
2017-02-20 12:16:15 +01:00
2017-10-09 08:31:27 -06:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00