Re: [RESEND PATCH]nbd: fix might_sleep warning on socket shutdown

2016-05-02 Thread Pranay Srivastava
On Tue, May 3, 2016 at 5:45 AM, Greg KH wrote: > On Mon, May 02, 2016 at 08:58:34AM +0530, Pranay Srivastava wrote: >> Hi, >> >> Can the following patch be reviewed? I'm working on some more changes >> on top of this change, >> so it'll be really helpful if someone can review this patch and let me

Re: [RESEND PATCH]nbd: fix might_sleep warning on socket shutdown

2016-05-02 Thread Greg KH
On Mon, May 02, 2016 at 08:58:34AM +0530, Pranay Srivastava wrote: > Hi, > > Can the following patch be reviewed? I'm working on some more changes > on top of this change, > so it'll be really helpful if someone can review this patch and let me > know of shortcomings/issues > with this. > > > On

Re: [RESEND PATCH]nbd: fix might_sleep warning on socket shutdown

2016-05-01 Thread Pranay Srivastava
Hi, Can the following patch be reviewed? I'm working on some more changes on top of this change, so it'll be really helpful if someone can review this patch and let me know of shortcomings/issues with this. On Sat, Apr 30, 2016 at 11:49 AM, Pranay Kr. Srivastava wrote: > This patch fixes the wa

[RESEND PATCH]nbd: fix might_sleep warning on socket shutdown

2016-04-29 Thread Pranay Kr. Srivastava
This patch fixes the warning generated when a timeout occurs on the request and socket is closed from a non-sleep context by 1. Moving the socket closing on a timeout to nbd_thread_send 2. Make sock lock to be a mutex instead of a spin lock, since nbd_xmit_timeout doesn't need to hold it anymo