diff --git a/module/bdev/nvme/bdev_nvme.c b/module/bdev/nvme/bdev_nvme.c index 5d236c702..3865f831a 100644 --- a/module/bdev/nvme/bdev_nvme.c +++ b/module/bdev/nvme/bdev_nvme.c @@ -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; diff --git a/module/bdev/nvme/common.h b/module/bdev/nvme/common.h index cb68c198c..4ea7f6ff7 100644 --- a/module/bdev/nvme/common.h +++ b/module/bdev/nvme/common.h @@ -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);