diff options
author | Josef Bacik <[email protected]> | 2017-10-24 15:57:18 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-10-24 18:50:59 -0600 |
commit | 32e67a3a06b88904155170560b7a63d372b320bd (patch) | |
tree | b51b63e136dec5ffeb42af6c68fe866b719fbd6d /include/linux/fpga/fpga-bridge.h | |
parent | 875397464a55dd750198f799626959ad4cf45563 (diff) |
nbd: handle interrupted sendmsg with a sndtimeo set
If you do not set sk_sndtimeo you will get -ERESTARTSYS if there is a
pending signal when you enter sendmsg, which we handle properly.
However if you set a timeout for your commands we'll set sk_sndtimeo to
that timeout, which means that sendmsg will start returning -EINTR
instead of -ERESTARTSYS. Fix this by checking either cases and doing
the correct thing.
Cc: [email protected]
Fixes: dc88e34d69d8 ("nbd: set sk->sk_sndtimeo for our sockets")
Reported-and-tested-by: Daniel Xu <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions