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

2017-10-24 Thread Jens Axboe
On 10/24/2017 01:57 PM, Josef Bacik wrote: > From: Josef Bacik > > 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 >

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

2017-10-24 Thread Josef Bacik
From: Josef Bacik 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