Josef Bacik 8f3ea35929 nbd: handle unexpected replies better
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>
2018-07-16 10:14:40 -06:00
..
2018-07-02 08:22:25 -06:00
2018-06-07 17:34:34 -07:00
2018-07-16 10:14:40 -06:00
2018-05-11 15:08:03 -06:00
2017-02-20 12:16:15 +01:00
2018-06-04 07:58:06 -07:00
2017-08-18 08:45:29 -06:00