]> www.infradead.org Git - users/hch/misc.git/commit
drivers: char: ipmi: ipmi_msghandler: Pass lockdep expression to RCU lists
authorAmol Grover <frextrite@gmail.com>
Fri, 17 Jan 2020 13:25:22 +0000 (18:55 +0530)
committerCorey Minyard <cminyard@mvista.com>
Thu, 12 Mar 2020 19:56:00 +0000 (14:56 -0500)
commit4f1885a7b347a905cd9ed7deb6472a9688637432
treebf8f13d3f1bfce9b896753a737c907ba481ebb0f
parent3cc6e2c599cdca573a8f347aea5da4c855ff5a78
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: Amol Grover <frextrite@gmail.com>
Message-Id: <20200117132521.31020-1-frextrite@gmail.com>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Tested-by: John Garry <john.garry@huawei.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c