• Keith Busch's avatar
    NVMe: Remove hctx reliance for multi-namespace · 42483228
    Keith Busch authored
    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: default avatarKeith Busch <keith.busch@intel.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    42483228
nvme-core.c 76.2 KB