From: Roland McGrath Date: Sat, 26 Jul 2008 02:45:58 +0000 (-0700) Subject: tracehook: wait_task_inactive X-Git-Tag: v2.6.27-rc1~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85ba2d862e521375a8ee01526c5c46b1f24bb4af;p=pandora-kernel.git tracehook: wait_task_inactive This extends wait_task_inactive() with a new argument so it can be used in a "soft" mode where it will check for the task changing state unexpectedly and back off. There is no change to existing callers. This lays the groundwork to allow robust, noninvasive tracing that can try to sample a blocked thread but back off safely if it wakes up. Signed-off-by: Roland McGrath Cc: Oleg Nesterov Reviewed-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed