signal: Document the RCU protection of ->sighand
authorOleg Nesterov <oleg@redhat.com>
Sun, 28 Sep 2014 21:44:18 +0000 (23:44 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Oct 2014 17:07:18 +0000 (10:07 -0700)
commit392809b25833548ccfc55e61b76c8451a5073216
tree9cffa1e96d8ecc7208fc3a3c9fc7ef8725d2aa55
parenteca1a08986f622c11b75b3b44d561a1f901c9cec
signal: Document the RCU protection of ->sighand

__cleanup_sighand() frees sighand without RCU grace period. This is
correct but this looks "obviously buggy" and constantly confuses the
readers, add the comments to explain how this works.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
kernel/fork.c
kernel/signal.c