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: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470019 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
This commit is contained in:
parent
6bda87b324
commit
b9635c2f16
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user