diff options
author | Josef Bacik <josef@toxicpanda.com> | 2018-07-16 19:11:35 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-07-16 19:14:40 +0300 |
commit | 8f3ea35929a0806ad1397db99a89ffee0140822a (patch) | |
tree | 0679226e653f76f3d82be9dd11b558f42f842504 /arch/m68k/Kconfig | |
parent | d7d94d48a272fd7583dc3c83acb8f5ed4ef456a4 (diff) | |
download | linux-8f3ea35929a0806ad1397db99a89ffee0140822a.tar.xz |
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>
Diffstat (limited to 'arch/m68k/Kconfig')
0 files changed, 0 insertions, 0 deletions