diff options
author | 2009-01-05 11:28:22 +0100 | |
---|---|---|
committer | 2009-01-05 13:14:33 +0100 | |
commit | a6037b61c2f5fc99c57c15b26d7cfa58bbb34008 (patch) | |
tree | b076de5cc8a75e4227f96dda31a0daa6e895579b /include/linux/i2c | |
parent | hrtimer: simplify hotplug migration (diff) | |
download | wireguard-linux-a6037b61c2f5fc99c57c15b26d7cfa58bbb34008.tar.xz wireguard-linux-a6037b61c2f5fc99c57c15b26d7cfa58bbb34008.zip |
hrtimer: fix recursion deadlock by re-introducing the softirq
Impact: fix rare runtime deadlock
There are a few sites that do:
spin_lock_irq(&foo)
hrtimer_start(&bar)
__run_hrtimer(&bar)
func()
spin_lock(&foo)
which obviously deadlocks. In order to avoid this, never call __run_hrtimer()
from hrtimer_start*() context, but instead defer this to softirq context.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/i2c')
0 files changed, 0 insertions, 0 deletions