Re: [PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:54:32PM -0700, Dmitry Torokhov wrote: > Large writes to uinput interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/misc/uinput.c | 1 + > 1 file

[PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Dmitry Torokhov
Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/uinput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index eb14ddf693