Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

2019-02-21 Thread Marcos Paulo de Souza
Hi Dmitry, On 2/18/19 5:15 PM, Dmitry Torokhov wrote: On Mon, Feb 18, 2019 at 03:21:10PM +0100, Rodrigo Rivas Costa wrote: On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote: - if (!wait_for_completion_timeout(&request->done, 30 * HZ)) { + if (!wait_for_completio

Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

2019-02-18 Thread Dmitry Torokhov
On Mon, Feb 18, 2019 at 03:21:10PM +0100, Rodrigo Rivas Costa wrote: > On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote: > > - if (!wait_for_completion_timeout(&request->done, 30 * HZ)) { > > + if (!wait_for_completion_interruptible_timeout(&request->done, > > +

Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

2019-02-18 Thread Rodrigo Rivas Costa
On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote: > - if (!wait_for_completion_timeout(&request->done, 30 * HZ)) { > + if (!wait_for_completion_interruptible_timeout(&request->done, > + 30 * HZ)) { > retv

Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

2019-02-17 Thread Dmitry Torokhov
Hi Marcos, On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote: > Commit 8e009118a45a ("Input: uinput - allow FF requests to time out") > sets a timeout of 30 seconds to wait for force feedback interaction with > userspace, but also made it impossible to interrupt the event handl