Merge tag 'for-4.20/block-20181021' of git://git.kernel.dk/linux-block
[muen/linux.git] / drivers / nvme / host / core.c
index 65c42448e904ce5ab11f3871ad4c8807f1c3def1..9e4a30b05bd203883353662777a42eb72a151822 100644 (file)
@@ -3145,8 +3145,8 @@ static void nvme_ns_remove(struct nvme_ns *ns)
        }
 
        mutex_lock(&ns->ctrl->subsys->lock);
-       nvme_mpath_clear_current_path(ns);
        list_del_rcu(&ns->siblings);
+       nvme_mpath_clear_current_path(ns);
        mutex_unlock(&ns->ctrl->subsys->lock);
 
        down_write(&ns->ctrl->namespaces_rwsem);