summaryrefslogtreecommitdiffstats
path: root/mm/kmemcheck.c
diff options
context:
space:
mode:
authorThomas Gleixner2015-05-13 22:49:12 +0200
committerThomas Gleixner2015-05-13 22:49:12 +0200
commit6ce47fd961fa8fb206433789d7754c73cab3b5d0 (patch)
tree2d2526d43c95232bc14bd9228f02de8fa14bd3dc /mm/kmemcheck.c
parentarch: Remove __ARCH_HAVE_CMPXCHG (diff)
downloadkernel-qcow2-linux-6ce47fd961fa8fb206433789d7754c73cab3b5d0.tar.gz
kernel-qcow2-linux-6ce47fd961fa8fb206433789d7754c73cab3b5d0.tar.xz
kernel-qcow2-linux-6ce47fd961fa8fb206433789d7754c73cab3b5d0.zip
rtmutex: Warn if trylock is called from hard/softirq context
rt_mutex_trylock() must be called from thread context. It can be called from atomic regions (preemption or interrupts disabled), but not from hard/softirq/nmi context. Add a warning to alert abusers. The reasons for this are: 1) There is a potential deadlock in the slowpath 2) Another cpu which blocks on the rtmutex will boost the task which allegedly locked the rtmutex, but that cannot work because the hard/softirq context borrows the task context. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sebastian Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'mm/kmemcheck.c')
0 files changed, 0 insertions, 0 deletions