bdev/nvme: add type_ctx to nvme_bdev_ns

This gives per-type ns handlers a way to associate
the generic nvme_bdev_ns structure to any type-specific
context.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Id632b41bc3ad842c8ec5e836436bd081e8cad496

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475926
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2019-11-26 11:52:57 -07:00 committed by Tomasz Zawadzki
parent ed35ca1de1
commit b7d00f19e6

View File

@ -57,6 +57,7 @@ struct nvme_bdev_ns {
struct spdk_nvme_ns *ns;
struct nvme_bdev_ctrlr *ctrlr;
TAILQ_HEAD(, nvme_bdev) bdevs;
void *type_ctx;
};
struct nvme_bdev_ctrlr {