Skip to content

Commit 6305950

Browse files
johnpgarrykeithbusch
authored andcommitted
nvme: stop setting namespace gendisk device driver data
Since commit 1f4137e ("nvme: move passthrough logging attribute to head"), we stopped using the namespace to hold the passthrough logging enabled attribute. There is now nowhere now which looks up the gendisk dev driver data, so stop setting it. Incidentally, it would have been better to set this before adding the disk. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: John Garry <john.g.garry@oracle.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 7bb8c40 commit 6305950

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/nvme/host/core.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4181,13 +4181,6 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, struct nvme_ns_info *info)
41814181
nvme_mpath_add_disk(ns, info->anagrpid);
41824182
nvme_fault_inject_init(&ns->fault_inject, ns->disk->disk_name);
41834183

4184-
/*
4185-
* Set ns->disk->device->driver_data to ns so we can access
4186-
* ns->head->passthru_err_log_enabled in
4187-
* nvme_io_passthru_err_log_enabled_[store | show]().
4188-
*/
4189-
dev_set_drvdata(disk_to_dev(ns->disk), ns);
4190-
41914184
return;
41924185

41934186
out_cleanup_ns_from_list:

0 commit comments

Comments
 (0)