summaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
authorJosef Bacik2018-07-16 18:11:34 +0200
committerJens Axboe2018-07-16 18:14:39 +0200
commitd7d94d48a272fd7583dc3c83acb8f5ed4ef456a4 (patch)
tree82545e7495d193b4f1e6794aae23e2dcfc7ad08b /include/linux/memcontrol.h
parentbsg: fix bogus EINVAL on non-data commands (diff)
downloadkernel-qcow2-linux-d7d94d48a272fd7583dc3c83acb8f5ed4ef456a4.tar.gz
kernel-qcow2-linux-d7d94d48a272fd7583dc3c83acb8f5ed4ef456a4.tar.xz
kernel-qcow2-linux-d7d94d48a272fd7583dc3c83acb8f5ed4ef456a4.zip
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>
Diffstat (limited to 'include/linux/memcontrol.h')
0 files changed, 0 insertions, 0 deletions