]> git.proxmox.com Git - mirror_ovs.git/commit
compat: rcu: Add support for consolidated-RCU reader checking
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 21 Oct 2020 16:49:39 +0000 (09:49 -0700)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 27 Nov 2020 13:31:27 +0000 (14:31 +0100)
commit82367043e3e8984d9f94f54e7fe123f4b7ac9dd8
tree1c294f39286bad7039e86f82cb9f3bf581ee2de2
parentf0d23f67954cce22e9465b566f13ff8c4aec168b
compat: rcu: Add support for consolidated-RCU reader checking

Upstream commit:
    commit 28875945ba98d1b47a8a706812b6494d165bb0a0
    Author: Joel Fernandes (Google) <joel@joelfernandes.org>
    Date:   Tue Jul 16 18:12:22 2019 -0400

    rcu: Add support for consolidated-RCU reader checking

    This commit adds RCU-reader checks to list_for_each_entry_rcu() and
    hlist_for_each_entry_rcu().  These checks are optional, and are indicated
    by a lockdep expression passed to a new optional argument to these two
    macros.  If this optional lockdep expression is omitted, these two macros
    act as before, checking for an RCU read-side critical section.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
    [ paulmck: Update to eliminate return within macro and update comment. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Backport portion of upstream commit for hlist_for_each_entry_rcu() macro
so that it can be used in following bug fix.

Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
datapath/linux/compat/include/linux/rculist.h