From: Paul E. McKenney Date: Fri, 20 Aug 2010 04:43:09 +0000 (-0700) Subject: rcu: add comment stating that list_empty() applies to RCU-protected lists X-Git-Tag: v2.6.37-rc1~215^2~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65e6bf484c497f02d47a0faae69ee398cd59cfda;p=pandora-kernel.git rcu: add comment stating that list_empty() applies to RCU-protected lists Because list_empty() does not dereference any RCU-protected pointers, and further does not pass such pointers to the caller (so that the caller does not dereference them either), it is safe to use list_empty() on RCU-protected lists. There is no need for a list_empty_rcu(). This commit adds a comment stating this explicitly. Requested-by: Andrew Morton Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed