mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ptrace: task_clear_jobctl_trapping()->wake_up_bit() needs mb()
__wake_up_bit() checks waitqueue_active() and thus the caller needs mb() as wake_up_bit() documents, fix task_clear_jobctl_trapping(). Signed-off-by: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4e52365f27
commit
650226bd95
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ void task_clear_jobctl_trapping(struct task_struct *task)
|
|||
{
|
||||
if (unlikely(task->jobctl & JOBCTL_TRAPPING)) {
|
||||
task->jobctl &= ~JOBCTL_TRAPPING;
|
||||
smp_mb(); /* advised by wake_up_bit() */
|
||||
wake_up_bit(&task->jobctl, JOBCTL_TRAPPING_BIT);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue