diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-02-09 18:17:18 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-06-24 16:33:06 -0400 |
commit | a080fb9f53983ad359c88e7b14376da3a82164c8 (patch) | |
tree | 0b41a6fbbf6845e25999c5d993c80b6e0f493ec7 | |
parent | 42177ac7da0cc1ba17cd525b4b238ce5065e1f10 (diff) | |
download | linux-rt-a080fb9f53983ad359c88e7b14376da3a82164c8.tar.gz |
kernel: softirq: unlock with irqs on
We unlock the lock while the interrupts are off. This isn't a problem
now but will get because the migrate_disable() + enable are not
symmetrical in regard to the status of interrupts.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/softirq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index ecf0ab0f7b4d..d2c870a826da 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -561,10 +561,10 @@ static int __thread_do_softirq(int cpu) */ if (local_softirq_pending()) __do_softirq_common(cpu >= 0); - local_unlock(local_softirq_lock); unpin_current_cpu(); - preempt_disable(); local_irq_enable(); + local_unlock(local_softirq_lock); + preempt_disable(); return 0; } |