diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-02-01 18:49:38 +0100 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 20:52:54 +0100 |
commit | 388f037f4e7f0a24bac6b1a24f144f5d939f58cf (patch) | |
tree | d51387afa2ad24644943a3a6add9b657e6698a77 /drivers/block | |
parent | NVMe: Disable the device before we write the admin queues (diff) | |
download | linux-388f037f4e7f0a24bac6b1a24f144f5d939f58cf.tar.xz linux-388f037f4e7f0a24bac6b1a24f144f5d939f58cf.zip |
NVMe: Move sysfs entries to the right place
Because I wasn't setting driverfs_dev, the devices were showing up under
/sys/devices/virtual/block. Now they appear underneath the PCI device
which they belong to.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index e3d921577b94..744db3877c42 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c @@ -889,6 +889,7 @@ static struct nvme_ns *nvme_alloc_ns(struct nvme_dev *dev, int index, disk->fops = &nvme_fops; disk->private_data = ns; disk->queue = ns->queue; + disk->driverfs_dev = &dev->pci_dev->dev; sprintf(disk->disk_name, "nvme%dn%d", dev->instance, index); set_capacity(disk, le64_to_cpup(&id->nsze) << (ns->lba_shift - 9)); |