* [PATCH 1/2] nvme: correct comment about nvme_ns_remove()
2026-02-05 17:11 [PATCH 0/2] nvme: a couple of small fixes John Garry
@ 2026-02-05 17:11 ` John Garry
2026-02-06 6:12 ` Christoph Hellwig
2026-02-05 17:11 ` [PATCH 2/2] nvme: stop setting namespace gendisk device driver data John Garry
2026-02-06 15:59 ` [PATCH 0/2] nvme: a couple of small fixes Keith Busch
2 siblings, 1 reply; 6+ messages in thread
From: John Garry @ 2026-02-05 17:11 UTC (permalink / raw)
To: hch, kbusch, sagi, axboe; +Cc: linux-nvme, John Garry
The comment in nvme_mpath_remove_disk() references nvme_remove_ns(), which
should be nvme_ns_remove().
Signed-off-by: John Garry <john.g.garry@oracle.com>
---
drivers/nvme/host/multipath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index 174027d1cc198..bfcc5904e6a26 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -1300,7 +1300,7 @@ void nvme_mpath_remove_disk(struct nvme_ns_head *head)
mutex_lock(&head->subsys->lock);
/*
* We are called when all paths have been removed, and at that point
- * head->list is expected to be empty. However, nvme_remove_ns() and
+ * head->list is expected to be empty. However, nvme_ns_remove() and
* nvme_init_ns_head() can run concurrently and so if head->delayed_
* removal_secs is configured, it is possible that by the time we reach
* this point, head->list may no longer be empty. Therefore, we recheck
--
2.43.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] nvme: stop setting namespace gendisk device driver data
2026-02-05 17:11 [PATCH 0/2] nvme: a couple of small fixes John Garry
2026-02-05 17:11 ` [PATCH 1/2] nvme: correct comment about nvme_ns_remove() John Garry
@ 2026-02-05 17:11 ` John Garry
2026-02-06 6:14 ` Christoph Hellwig
2026-02-06 15:59 ` [PATCH 0/2] nvme: a couple of small fixes Keith Busch
2 siblings, 1 reply; 6+ messages in thread
From: John Garry @ 2026-02-05 17:11 UTC (permalink / raw)
To: hch, kbusch, sagi, axboe; +Cc: linux-nvme, John Garry
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.
Signed-off-by: John Garry <john.g.garry@oracle.com>
---
drivers/nvme/host/core.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index c12986495e712..3a2126584a236 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:
--
2.43.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] nvme: stop setting namespace gendisk device driver data
2026-02-05 17:11 ` [PATCH 2/2] nvme: stop setting namespace gendisk device driver data John Garry
@ 2026-02-06 6:14 ` Christoph Hellwig
0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2026-02-06 6:14 UTC (permalink / raw)
To: John Garry; +Cc: hch, kbusch, sagi, axboe, linux-nvme
On Thu, Feb 05, 2026 at 05:11:15PM +0000, John Garry wrote:
> 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.
I could also not find any other user of this drvdata field, so:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] nvme: a couple of small fixes
2026-02-05 17:11 [PATCH 0/2] nvme: a couple of small fixes John Garry
2026-02-05 17:11 ` [PATCH 1/2] nvme: correct comment about nvme_ns_remove() John Garry
2026-02-05 17:11 ` [PATCH 2/2] nvme: stop setting namespace gendisk device driver data John Garry
@ 2026-02-06 15:59 ` Keith Busch
2 siblings, 0 replies; 6+ messages in thread
From: Keith Busch @ 2026-02-06 15:59 UTC (permalink / raw)
To: John Garry; +Cc: hch, sagi, axboe, linux-nvme
On Thu, Feb 05, 2026 at 05:11:13PM +0000, John Garry wrote:
> This is just a couple of small fixes, based on nvme 7.0 queue.
Thanks, applied to nvme-7.0.
^ permalink raw reply [flat|nested] 6+ messages in thread