diff options
| author | John Garry <john.g.garry@oracle.com> | 2026-02-05 20:11:15 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-02-06 18:59:11 +0300 |
| commit | 63059500b124254c2630b2f8c46cb3555e726f52 (patch) | |
| tree | e798897a8df3ca984bdab955f4562d23b7e7bbf0 | |
| parent | 7bb8c40f5ad88392bbabb719ebfd5e3354ce0428 (diff) | |
| download | linux-63059500b124254c2630b2f8c46cb3555e726f52.tar.xz | |
nvme: stop setting namespace gendisk device driver data
Since commit 1f4137e882c6 ("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>
| -rw-r--r-- | drivers/nvme/host/core.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c12986495e71..3a2126584a23 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4181,13 +4181,6 @@ static void nvme_alloc_ns(struct nvme_ctrl *ctrl, struct nvme_ns_info *info) nvme_mpath_add_disk(ns, info->anagrpid); nvme_fault_inject_init(&ns->fault_inject, ns->disk->disk_name); - /* - * Set ns->disk->device->driver_data to ns so we can access - * ns->head->passthru_err_log_enabled in - * nvme_io_passthru_err_log_enabled_[store | show](). - */ - dev_set_drvdata(disk_to_dev(ns->disk), ns); - return; out_cleanup_ns_from_list: |
