aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2017-07-21 10:48:15 -0400
committerJens Axboe <[email protected]>2017-07-22 11:12:32 -0600
commita7ee8cf190ecc8f118f0b7839912564117524d85 (patch)
tree94102d0ba3f4defefedc7914899b12a2acc91d97 /lib/mpi/mpiutil.c
parentb4b2aeccf0f0fa1fd356cc72eeda7a2c66c39904 (diff)
nbd: only set sndtimeo if we have a timeout set
A user reported that he was getting immediate disconnects with my sndtimeo patch applied. This is because by default the OSS nbd client doesn't set a timeout, so we end up setting the sndtimeo to 0, which of course means we have send errors a lot. Instead only set our sndtimeo if the user specified a timeout, otherwise we'll just wait forever like we did previously. Fixes: dc88e34d69d8 ("nbd: set sk->sk_sndtimeo for our sockets") Reported-by: Adam Borowski <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions