Skip to content
Commit 4ac76436 authored by Amol Grover's avatar Amol Grover Committed by Keith Busch
Browse files

nvmet: Pass lockdep expression to RCU lists



ctrl->subsys->namespaces and subsys->namespaces are traversed with
list_for_each_entry_rcu outside an RCU read-side critical section but
under the protection of ctrl->subsys->lock and subsys->lock respectively.

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

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Reviewed-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: default avatarAmol Grover <frextrite@gmail.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent c92bddee
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