summaryrefslogtreecommitdiff
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-08-20 04:43:09 (GMT)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-08-20 16:00:18 (GMT)
commit65e6bf484c497f02d47a0faae69ee398cd59cfda (patch)
tree644a86b779a196da7c050cde9de593c413e0cc1e /drivers/vhost/net.c
parent80dcf60e6b97c7363971e7a0a788d8484d35f8a6 (diff)
downloadlinux-65e6bf484c497f02d47a0faae69ee398cd59cfda.tar.xz
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 <akpm@linux-foundation.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/vhost/net.c')
0 files changed, 0 insertions, 0 deletions