rcu: Adjust the comment of function rcu_is_watching
authorZhouyi Zhou <zhouzhouyi@gmail.com>
Mon, 8 Oct 2018 06:50:41 +0000 (06:50 +0000)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 17:03:59 +0000 (09:03 -0800)
commit2320bda26df75c02f86c9fa42c3355ebcd16d8ed
treecac71cbeb4a0df3e7a69ee3e988cebd4f9d2edca
parentc669c014d1dae9c7cdbfff049c798722f8650829
rcu: Adjust the comment of function rcu_is_watching

Because RCU avoids interrupting idle CPUs, rcu_is_watching() is used to
test whether or not it is currently legal to run RCU read-side critical
sections on this CPU.  However, the first sentence and last sentences
of current comment for rcu_is_watching have opposite meaning of what
is expected.  This commit therefore fixes this header comment.

Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.c