Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Large writes to uinput interface may cause rcu stalls. Let's add
cond_resched() to the loop to avoid this.

Reviewed-by: Paul E. McKenney <paulmck@linux.ibm.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+1
+1
drivers/input/misc/uinput.c
··· 598 598 599 599 input_event(udev->dev, ev.type, ev.code, ev.value); 600 600 bytes += input_event_size(); 601 + cond_resched(); 601 602 } 602 603 603 604 return bytes;