signal-fix-up-rcu-wreckage.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
41f0f3b41c
commit
837c7866de
|
@ -1394,12 +1394,12 @@ struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
|
|||
struct sighand_struct *sighand;
|
||||
|
||||
for (;;) {
|
||||
local_irq_save(*flags);
|
||||
local_irq_save_nort(*flags);
|
||||
rcu_read_lock();
|
||||
sighand = rcu_dereference(tsk->sighand);
|
||||
if (unlikely(sighand == NULL)) {
|
||||
rcu_read_unlock();
|
||||
local_irq_restore(*flags);
|
||||
local_irq_restore_nort(*flags);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1410,7 +1410,7 @@ struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
|
|||
}
|
||||
spin_unlock(&sighand->siglock);
|
||||
rcu_read_unlock();
|
||||
local_irq_restore(*flags);
|
||||
local_irq_restore_nort(*flags);
|
||||
}
|
||||
|
||||
return sighand;
|
||||
|
|
Loading…
Reference in New Issue