Josef Bacik d7d94d48a2 nbd: don't requeue the same request twice.
We can race with the snd timeout and the per-request timeout and end up
requeuing the same request twice.  We can't use the send_complete
completion to tell if everything is ok because we hold the tx_lock
during send, so the timeout stuff will block waiting to mark the socket
dead, and we could be marked complete and still requeue.  Instead add a
flag to the socket so we know whether we've been requeued yet.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-07-16 10:14:39 -06:00
..
2018-07-02 08:22:25 -06:00
2018-06-07 17:34:34 -07: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