Set disk device_groups as mpath_device_groups, as this gives us the
"multipath" syfs device groups.

Signed-off-by: John Garry <[email protected]>
---
 drivers/scsi/scsi_multipath.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/scsi_multipath.c b/drivers/scsi/scsi_multipath.c
index 6aeac20a350ff..73afcbaf2d7de 100644
--- a/drivers/scsi/scsi_multipath.c
+++ b/drivers/scsi/scsi_multipath.c
@@ -389,6 +389,7 @@ struct mpath_head_template smpdt_pr = {
        .available_path = scsi_mpath_available_path,
        .get_iopolicy = scsi_mpath_get_iopolicy,
        .clone_bio = scsi_mpath_clone_bio,
+       .device_groups = mpath_device_groups,
 };
 
 static struct scsi_mpath_head *scsi_mpath_alloc_head(void)
-- 
2.43.5


Reply via email to