nvme-multipath: support io stats on the mpath device
[linux-2.6-microblaze.git] / block / blk-ia-ranges.c
index 2bd1d31..2141931 100644 (file)
@@ -123,7 +123,8 @@ int disk_register_independent_access_ranges(struct gendisk *disk)
         */
        WARN_ON(iars->sysfs_registered);
        ret = kobject_init_and_add(&iars->kobj, &blk_ia_ranges_ktype,
-                                  &q->kobj, "%s", "independent_access_ranges");
+                                  &disk->queue_kobj, "%s",
+                                  "independent_access_ranges");
        if (ret) {
                disk->ia_ranges = NULL;
                kobject_put(&iars->kobj);