nvme: avoid race in shutdown namespace removal
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2014529 Upstream Status: From upstream linux mainline Tested: Tested by Ewan D. Milne
This patch fixes a regression in an earlier commit that affects NVMe, it typically shows up as a crash in cdev_device_del() -> device_del() -> klist_put() following a WARN_ON() in the sysfs code.
Signed-off-by: Ewan D. Milne emilne@redhat.com