diff options
author | Josef Bacik <jbacik@fb.com> | 2017-06-08 22:39:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-09 17:33:19 +0300 |
commit | dc88e34d69d87c370deaa9d613dac8e3a0411f59 (patch) | |
tree | f139323df2a6f193fe0063532299baedb32af1df /drivers/nvme/host/lightnvm.c | |
parent | b040ad9cf6a169cc000a5324fcada695dfa1f4b3 (diff) | |
download | linux-dc88e34d69d87c370deaa9d613dac8e3a0411f59.tar.xz |
nbd: set sk->sk_sndtimeo for our sockets
If the nbd server stops receiving packets altogether we will get stuck
waiting for them to receive indefinitely as the tcp buffer will never
empty, which looks like a deadlock. Fix this by setting the sk send
timeout to our configured timeout, that way if the server really
misbehaves we'll disconnect cleanly instead of waiting forever.
Reported-by: Dan Melnic <dmm@fb.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/lightnvm.c')
0 files changed, 0 insertions, 0 deletions