diff options
author | Christoph Hellwig <hch@lst.de> | 2021-05-21 07:51:08 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-01 15:42:23 +0200 |
commit | f165fb89b71facbef833c6244abf8b9887b899d1 (patch) | |
tree | 6607afe92808926a9568a39ff5b968e948969ad6 /drivers/nvdimm | |
parent | nvdimm-pmem: convert to blk_alloc_disk/blk_cleanup_disk (diff) | |
download | linux-f165fb89b71facbef833c6244abf8b9887b899d1.tar.xz linux-f165fb89b71facbef833c6244abf8b9887b899d1.zip |
nvme-multipath: convert to blk_alloc_disk/blk_cleanup_disk
Convert the nvme-multipath driver to use the blk_alloc_disk and
blk_cleanup_disk helpers to simplify gendisk and request_queue
allocation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210521055116.1053587-19-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r-- | drivers/nvdimm/pmem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 9fcd05084564..31f3c4bd6f72 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -472,7 +472,6 @@ static int pmem_attach_disk(struct device *dev, blk_queue_flag_set(QUEUE_FLAG_DAX, q); disk->fops = &pmem_fops; - disk->queue = q; disk->private_data = pmem; nvdimm_namespace_disk_name(ndns, disk->disk_name); set_capacity(disk, (pmem->size - pmem->pfn_pad - pmem->data_offset) |