Commit b9635c2f authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

bdev/nvme: move nvme_io_channel to common.h



Other NVMe bdev modules (e.g. OCSSD) need the definition of the
nvme_io_channel to be able to send IO requests, so this structure has to
be defined in the common header.

Change-Id: I550d15d091078588c6c7ab824d883e049ec5a72c
Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470019


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarWojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
parent 6bda87b3
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -54,17 +54,6 @@
static void bdev_nvme_get_spdk_running_config(FILE *fp);
static int bdev_nvme_config_json(struct spdk_json_write_ctx *w);

struct nvme_io_channel {
	struct spdk_nvme_qpair		*qpair;
	struct spdk_poller		*poller;
	TAILQ_HEAD(, spdk_bdev_io)	pending_resets;

	bool				collect_spin_stat;
	uint64_t			spin_ticks;
	uint64_t			start_ticks;
	uint64_t			end_ticks;
};

struct nvme_bdev_io {
	/** array of iovecs to transfer. */
	struct iovec *iovs;
+11 −0
Original line number Diff line number Diff line
@@ -120,6 +120,17 @@ struct nvme_async_probe_ctx {
	uint32_t populates_in_progress;
};

struct nvme_io_channel {
	struct spdk_nvme_qpair		*qpair;
	struct spdk_poller		*poller;
	TAILQ_HEAD(, spdk_bdev_io)	pending_resets;

	bool				collect_spin_stat;
	uint64_t			spin_ticks;
	uint64_t			start_ticks;
	uint64_t			end_ticks;
};

void nvme_ctrlr_populate_namespace_done(struct nvme_async_probe_ctx *ctx,
					struct nvme_bdev_ns *ns, int rc);