diff options
author | Tejun Heo <tj@kernel.org> | 2011-06-02 11:13:59 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-06-04 18:17:10 +0200 |
commit | 81be24b8cdeb69e62f9d1b6b425fd9ffdd37f581 (patch) | |
tree | 63afd141fdb380c7b00a01a2080ace6bcc232386 /fs/nfs | |
parent | 755e276b3326f300585435d2f3876e66e248c476 (diff) | |
download | op-kernel-dev-81be24b8cdeb69e62f9d1b6b425fd9ffdd37f581.zip op-kernel-dev-81be24b8cdeb69e62f9d1b6b425fd9ffdd37f581.tar.gz |
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 <tj@kernel.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions