Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2019-01-08 Thread Jan Kara
On Sat 29-12-18 21:00:28, Orion Poplawski wrote: > On 12/29/18 3:34 PM, Orion Poplawski wrote: > > On 12/29/18 3:04 PM, Orion Poplawski wrote: > > > > On Thu 22-02-18 15:14:54, Kunal Shubham wrote: > > > > > >> On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: > > > > > >> From: Vivek Trivedi >

Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-12-29 Thread Orion Poplawski
On 12/29/18 3:34 PM, Orion Poplawski wrote: On 12/29/18 3:04 PM, Orion Poplawski wrote: On Thu 22-02-18 15:14:54, Kunal Shubham wrote: >> On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: >> From: Vivek Trivedi >> >> If fanotify userspace response server thread is frozen first, >> it may fa

Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-12-29 Thread Orion Poplawski
On 12/29/18 3:04 PM, Orion Poplawski wrote: On Thu 22-02-18 15:14:54, Kunal Shubham wrote: >> On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: >> From: Vivek Trivedi >> >> If fanotify userspace response server thread is frozen first, >> it may fail to send response from userspace to kernel

Re: Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-12-29 Thread Orion Poplawski
On Thu 22-02-18 15:14:54, Kunal Shubham wrote: >> On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: >> From: Vivek Trivedi >> >> If fanotify userspace response server thread is frozen first, >> it may fail to send response from userspace to kernel space listener. >> In this scenario, fanoti

Re: Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-02-22 Thread Jan Kara
On Thu 22-02-18 15:14:54, Kunal Shubham wrote: > >> On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: > >> From: Vivek Trivedi > >> > >> If fanotify userspace response server thread is frozen first, > >> it may fail to send response from userspace to kernel space listener. > >> In this scenari

RE: Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-02-22 Thread Kunal Shubham
uct fsnotify_group *group, pr_debug("%s: group=%p event=%p\n", __func__, group, event); - wait_event(group->fanotify_data.access_waitq, event->response); + while (!event->response) { + if (wait_event_freezable(group->fanotify_data.access_waitq, +

Re: [PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-02-16 Thread Jan Kara
On Fri 16-02-18 15:14:40, t.vi...@samsung.com wrote: > From: Vivek Trivedi > > If fanotify userspace response server thread is frozen first, > it may fail to send response from userspace to kernel space listener. > In this scenario, fanotify response listener will never get response > from userep

[PATCH] fanotify: allow freeze on suspend when waiting for response from userspace

2018-02-16 Thread t . vivek
From: Vivek Trivedi If fanotify userspace response server thread is frozen first, it may fail to send response from userspace to kernel space listener. In this scenario, fanotify response listener will never get response from userepace and fail to suspend. Use freeze-friendly wait API to handle