aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2014-10-02 12:22:51 +0200
committerIngo Molnar <[email protected]>2014-11-04 07:17:47 +0100
commit6b55fc63f46ba299f3d84013e9232be4bd259eab (patch)
tree78df97c7fec83de7c10d25027bdb6ab755349463 /tools/perf/scripts/python
parent5d4d56582467f3c08dfedd0d995ce2092f384ecc (diff)
audit, sched/wait: Fixup kauditd_thread() wait loop
The kauditd_thread wait loop is a bit iffy; it has a number of problems: - calls try_to_freeze() before schedule(); you typically want the thread to re-evaluate the sleep condition when unfreezing, also freeze_task() issues a wakeup. - it unconditionally does the {add,remove}_wait_queue(), even when the sleep condition is false. Use wait_event_freezable() that does the right thing. Reported-by: Mike Galbraith <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Eric Paris <[email protected]> Cc: [email protected] Cc: Eric Paris <[email protected]> Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions