]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nvme/host/pci.c
NVMe: Remove hctx reliance for multi-namespace
authorKeith Busch <keith.busch@intel.com>
Mon, 1 Jun 2015 15:29:54 +0000 (09:29 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 1 Jun 2015 20:36:06 +0000 (14:36 -0600)
commit42483228d4c019ffc86b8dbea7dfbc3f9566fe7e
tree392fdf30b3cd4b7e654e705f4976b7fdcf1d99ab
parent843e8ddb250b5e8ff157b4096277c0c54102905c
NVMe: Remove hctx reliance for multi-namespace

The driver needs to track shared tags to support multiple namespaces
that may be dynamically allocated or deleted. Relying on the first
request_queue's hctx's is not appropriate as we cannot clear outstanding
tags for all namespaces using this handle, nor can the driver easily track
all request_queue's hctx as namespaces are attached/detached. Instead,
this patch uses the nvme_dev's tagset to get the shared tag resources
instead of through a request_queue hctx.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c