From: Oleg Nesterov Date: Sun, 26 Aug 2012 19:12:17 +0000 (+0200) Subject: task_work: Simplify the usage in ptrace_notify() and get_signal_to_deliver() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~100^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f784e8a7989c0da3062d04bfea3db90f41e8f738;p=pandora-kernel.git task_work: Simplify the usage in ptrace_notify() and get_signal_to_deliver() ptrace_notify() and get_signal_to_deliver() do unnecessary things before task_work_run(): 1. smp_mb__after_clear_bit() is not needed, test_and_clear_bit() implies mb(). 2. And we do not need the barrier at all, in this case we only care about the "synchronous" works added by the task itself. 3. No need to clear TIF_NOTIFY_RESUME, and we should not assume task_works is the only user of this flag. Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra Cc: Al Viro Cc: Linus Torvalds Cc: Andrew Morton Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20120826191217.GA4238@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed