Loading drivers/nvme/host/core.c +2 −5 Original line number Diff line number Diff line Loading @@ -2961,8 +2961,6 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid) static void nvme_ns_remove(struct nvme_ns *ns) { struct nvme_ns_head *head = ns->head; if (test_and_set_bit(NVME_NS_REMOVING, &ns->flags)) return; Loading @@ -2980,7 +2978,6 @@ static void nvme_ns_remove(struct nvme_ns *ns) mutex_lock(&ns->ctrl->subsys->lock); nvme_mpath_clear_current_path(ns); if (head) list_del_rcu(&ns->siblings); mutex_unlock(&ns->ctrl->subsys->lock); Loading @@ -2988,7 +2985,7 @@ static void nvme_ns_remove(struct nvme_ns *ns) list_del_init(&ns->list); mutex_unlock(&ns->ctrl->namespaces_mutex); synchronize_srcu(&head->srcu); synchronize_srcu(&ns->head->srcu); nvme_put_ns(ns); } Loading Loading
drivers/nvme/host/core.c +2 −5 Original line number Diff line number Diff line Loading @@ -2961,8 +2961,6 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid) static void nvme_ns_remove(struct nvme_ns *ns) { struct nvme_ns_head *head = ns->head; if (test_and_set_bit(NVME_NS_REMOVING, &ns->flags)) return; Loading @@ -2980,7 +2978,6 @@ static void nvme_ns_remove(struct nvme_ns *ns) mutex_lock(&ns->ctrl->subsys->lock); nvme_mpath_clear_current_path(ns); if (head) list_del_rcu(&ns->siblings); mutex_unlock(&ns->ctrl->subsys->lock); Loading @@ -2988,7 +2985,7 @@ static void nvme_ns_remove(struct nvme_ns *ns) list_del_init(&ns->list); mutex_unlock(&ns->ctrl->namespaces_mutex); synchronize_srcu(&head->srcu); synchronize_srcu(&ns->head->srcu); nvme_put_ns(ns); } Loading