Re: [PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:53:59PM -0700, Dmitry Torokhov wrote: > Large writes to evdev 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/evdev.c | 1 + > 1 file

Re: [PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:53:59PM -0700, Dmitry Torokhov wrote: > Large writes to evdev 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/evdev.c | 1 + > 1 file

[PATCH] Input: evdev - add a schedule point in evdev_write()

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

[PATCH] Input: evdev - add a schedule point in evdev_write()

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