Thread (2 messages) 2 messages, 2 authors, 2017-10-25

Re: [PATCH] nbd: handle interrupted sendmsg with a sndtimeo set

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-10-25 00:51:18
Also in: stable

On 10/24/2017 01:57 PM, Josef Bacik wrote:
From: Josef Bacik <redacted>

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.
Added for 4.14, thanks Josef.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help