Commit 552cccd3 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: SAUCE: nvme merge cleanup

BugLink: http://bugs.launchpad.net/bugs/1531539Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 9850492f
obj-$(CONFIG_BLK_DEV_NVME) += nvme.o
nvme-y += core.o pci.o lightnvm.o
lightnvm-$(CONFIG_NVM) := lightnvm.o
nvme-y += core.o pci.o $(lightnvm-y)
nvme-$(CONFIG_BLK_DEV_NVME_SCSI) += scsi.o
......@@ -1185,8 +1185,17 @@ static void nvme_ns_remove(struct nvme_ns *ns)
lockdep_assert_held(&ns->ctrl->namespaces_mutex);
if (kill)
if (kill) {
blk_set_queue_dying(ns->queue);
/*
* The controller was shutdown first if we got here through
* device removal. The shutdown may requeue outstanding
* requests. These need to be aborted immediately so
* del_gendisk doesn't block indefinitely for their completion.
*/
blk_mq_abort_requeue_list(ns->queue);
}
if (ns->disk->flags & GENHD_FL_UP) {
if (blk_get_integrity(ns->disk))
blk_integrity_unregister(ns->disk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment