diff options
| author | Thomas Gleixner <[email protected]> | 2009-12-09 10:14:58 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-12-14 17:11:34 +0100 |
| commit | 5fe85be081edf0ac92d83f9c39e0ab5c1371eb82 (patch) | |
| tree | 6c8d313aec92310787c14b7d289f69e3e5e38711 /lib/dynamic_debug.c | |
| parent | 663997d417330a59a566452f52cfa04c8ffd190b (diff) | |
sched: Use rcu in sys_sched_getscheduler/sys_sched_getparam()
read_lock(&tasklist_lock) does not protect
sys_sched_getscheduler and sys_sched_getparam() against a
concurrent update of the policy or scheduler parameters as
do_sched_setscheduler() does not take the tasklist_lock. The
accessed integers can be retrieved w/o locking and are snapshots
anyway.
Using rcu_read_lock() to protect find_task_by_vpid() and prevent
the task struct from going away is not changing the above
situation.
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions