Searched hist:ab1b7880dec86bbdacd31a4c5cf104de4cf903f2 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/kernel/ |
H A D | torture.c | diff ab1b7880dec86bbdacd31a4c5cf104de4cf903f2 Tue Sep 22 18:42:42 CDT 2020 Paul E. McKenney <paulmck@kernel.org> rcutorture: Make stutter_wait() caller restore priority
Currently, stutter_wait() will happily spin waiting for the stutter interval to end even if the caller is running at a real-time priority level. This could starve normal-priority tasks for no good reason. This commit therefore drops the calling task's priority to SCHED_OTHER MAX_NICE if stutter_wait() needs to wait. But when it waits, stutter_wait() returns true, which allows the caller to restore the priority if needed. Callers that were already running at SCHED_OTHER MAX_NICE obviously do not need any changes, but this commit also restores priority for higher-priority callers.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
|
/openbmc/linux/kernel/rcu/ |
H A D | rcutorture.c | diff ab1b7880dec86bbdacd31a4c5cf104de4cf903f2 Tue Sep 22 18:42:42 CDT 2020 Paul E. McKenney <paulmck@kernel.org> rcutorture: Make stutter_wait() caller restore priority
Currently, stutter_wait() will happily spin waiting for the stutter interval to end even if the caller is running at a real-time priority level. This could starve normal-priority tasks for no good reason. This commit therefore drops the calling task's priority to SCHED_OTHER MAX_NICE if stutter_wait() needs to wait. But when it waits, stutter_wait() returns true, which allows the caller to restore the priority if needed. Callers that were already running at SCHED_OTHER MAX_NICE obviously do not need any changes, but this commit also restores priority for higher-priority callers.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
|