[PATCH 18/19] nvme-multipath: set mpath_head_template.device_groups

John Garry
2026-02-25T15:41:21Z

Set the instance of mpath_head_template.device_groups to
nvme_ns_attr_groups.

This callback is used for setting the attribute groups in adding the
multipath gendisk.

Signed-off-by: John Garry <john.g.garry@oracle.com>
---
drivers/nvme/host/multipath.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index fdb7f3b55a197..081a8a20a9908 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -1570,4 +1570,5 @@ static const struct mpath_head_template mpdt = {
.chr_uring_cmd_iopoll = nvme_ns_chr_uring_cmd_iopoll,
.get_iopolicy = nvme_mpath_get_iopolicy,
.get_unique_id = nvme_mpath_get_unique_id,
+ .device_groups = nvme_ns_attr_groups,
};
--
2.43.5