From: Jiri Pirko Date: Tue, 14 Apr 2009 15:33:57 +0000 (+0200) Subject: rculist.h: introduce list_entry_rcu() and list_first_entry_rcu() X-Git-Tag: v2.6.31-rc1~404^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c6a9870f901045f2464c3dc6ee8914bfdc07aa;p=pandora-kernel.git rculist.h: introduce list_entry_rcu() and list_first_entry_rcu() I've run into the situation where I need to use list_first_entry with rcu-guarded list. This patch introduces this. Also simplify list_for_each_entry_rcu() to use new list_entry_rcu() instead of list_entry(). Signed-off-by: Jiri Pirko Reviewed-by: Paul E. McKenney Cc: dipankar@in.ibm.com LKML-Reference: <20090414153356.GC3999@psychotron.englab.brq.redhat.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed