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.
1 parent 14005c9 commit d681107Copy full SHA for d681107
drivers/nvme/host/multipath.c
@@ -1200,7 +1200,8 @@ void nvme_mpath_add_sysfs_link(struct nvme_ns_head *head)
1200
*/
1201
srcu_idx = srcu_read_lock(&head->srcu);
1202
1203
- list_for_each_entry_rcu(ns, &head->list, siblings) {
+ list_for_each_entry_srcu(ns, &head->list, siblings,
1204
+ srcu_read_lock_held(&head->srcu)) {
1205
/*
1206
* Ensure that ns path disk node is already added otherwise we
1207
* may get invalid kobj name for target
0 commit comments