|
@@ -238,6 +238,7 @@ static int virtblk_probe(struct virtio_device *vdev)
|
|
vblk->disk->first_minor = index_to_minor(index);
|
|
vblk->disk->first_minor = index_to_minor(index);
|
|
vblk->disk->private_data = vblk;
|
|
vblk->disk->private_data = vblk;
|
|
vblk->disk->fops = &virtblk_fops;
|
|
vblk->disk->fops = &virtblk_fops;
|
|
|
|
+ vblk->disk->driverfs_dev = &vdev->dev;
|
|
index++;
|
|
index++;
|
|
|
|
|
|
/* If barriers are supported, tell block layer that queue is ordered */
|
|
/* If barriers are supported, tell block layer that queue is ordered */
|