[PATCH 03/11] nvme: export nvme_bdev_ops
Guixin Liu
kanie at linux.alibaba.com
Fri Oct 23 01:02:43 PDT 2026
Export the NVMe block device operations so that other subsystems can
recognize a block device as an NVMe namespace through its operations
pointer and reach the NVMe structures behind it. The NVMe target FDP
bridge uses this to detect an NVMe backing device of a namespace.
Signed-off-by: Guixin Liu <kanie at linux.alibaba.com>
---
drivers/nvme/host/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 7eb0f9fe6b18d..0099ce5730b20 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2719,6 +2719,7 @@ const struct block_device_operations nvme_bdev_ops = {
.report_zones = nvme_report_zones,
.pr_ops = &nvme_pr_ops,
};
+EXPORT_SYMBOL_GPL(nvme_bdev_ops);
static int nvme_wait_ready(struct nvme_ctrl *ctrl, u32 mask, u32 val,
u32 timeout, const char *op)
--
2.43.7
More information about the Linux-nvme
mailing list