signal-fix-up-rcu-wreckage.patch

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2011-07-22 08:07:08 +02:00 committed by Alibek Omarov
parent 41f0f3b41c
commit 837c7866de
1 changed files with 3 additions and 3 deletions

View File

@ -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;