summaryrefslogtreecommitdiff
path: root/net/bluetooth/rfcomm/core.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-10-02 10:22:51 (GMT)
committerIngo Molnar <mingo@kernel.org>2014-11-04 06:17:47 (GMT)
commit6b55fc63f46ba299f3d84013e9232be4bd259eab (patch)
tree78df97c7fec83de7c10d25027bdb6ab755349463 /net/bluetooth/rfcomm/core.c
parent5d4d56582467f3c08dfedd0d995ce2092f384ecc (diff)
downloadlinux-6b55fc63f46ba299f3d84013e9232be4bd259eab.tar.xz
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 <umgwanakikbuti@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Eric Paris <eparis@redhat.com> Cc: oleg@redhat.com Cc: Eric Paris <eparis@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20141002102251.GA6324@worktop.programming.kicks-ass.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/bluetooth/rfcomm/core.c')
0 files changed, 0 insertions, 0 deletions