aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2011-06-02 11:13:59 +0200
committerOleg Nesterov <[email protected]>2011-06-04 18:17:10 +0200
commit81be24b8cdeb69e62f9d1b6b425fd9ffdd37f581 (patch)
tree63afd141fdb380c7b00a01a2080ace6bcc232386 /lib/memory-notifier-error-inject.c
parent755e276b3326f300585435d2f3876e66e248c476 (diff)
ptrace: relocate set_current_state(TASK_TRACED) in ptrace_stop()
In ptrace_stop(), after arch hook is done, the task state and jobctl bits are updated while holding siglock. The ordering requirement there is that TASK_TRACED is set before JOBCTL_TRAPPING is cleared to prevent ptracer waiting on TRAPPING doesn't end up waking up TRACED is actually set and sees TASK_RUNNING in wait(2). Move set_current_state(TASK_TRACED) to the top of the block and reorganize comments. This makes the ordering more obvious (TASK_TRACED before other updates) and helps future updates to group stop participation. This patch doesn't cause any functional change. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Oleg Nesterov <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions