We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 506774b + 3529b9e commit efbf84bCopy full SHA for efbf84b
drivers/nvme/host/multipath.c
@@ -1046,7 +1046,8 @@ void nvme_mpath_add_sysfs_link(struct nvme_ns_head *head)
1046
*/
1047
srcu_idx = srcu_read_lock(&head->srcu);
1048
1049
- list_for_each_entry_rcu(ns, &head->list, siblings) {
+ list_for_each_entry_srcu(ns, &head->list, siblings,
1050
+ srcu_read_lock_held(&head->srcu)) {
1051
/*
1052
* Ensure that ns path disk node is already added otherwise we
1053
* may get invalid kobj name for target
0 commit comments