Skip to content
Commit 4f1885a7 authored by Amol Grover's avatar Amol Grover Committed by Corey Minyard
Browse files

drivers: char: ipmi: ipmi_msghandler: Pass lockdep expression to RCU lists



intf->cmd_rcvrs is traversed with list_for_each_entry_rcu
outside an RCU read-side critical section but under the
protection of intf->cmd_rcvrs_mutex.

ipmi_interfaces is traversed using list_for_each_entry_rcu
outside an RCU read-side critical section but under the protection
of ipmi_interfaces_mutex.

Hence, add the corresponding lockdep expression to the list traversal
primitive to silence false-positive lockdep warnings, and
harden RCU lists.

Add macro for the corresponding lockdep expression to make the code
clean and concise.

Signed-off-by: default avatarAmol Grover <frextrite@gmail.com>
Message-Id: <20200117132521.31020-1-frextrite@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Tested-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 3cc6e2c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment