Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nilay Shroff <nilay@linux.ibm.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-nvme@lists.infradead.org, kbusch@kernel.org,
	sagi@grimberg.me, Jens Axboe <axboe@kernel.dk>,
	john.g.garry@oracle.com, wenxiong@linux.ibm.com,
	gjoyce@linux.ibm.com
Subject: Re: [PATCH 1/2] nvme: keep transport module referenced while head node is open
Date: Sun, 13 Sep 2026 19:33:51 +0530	[thread overview]
Message-ID: <57629796-d346-4cc4-8c9c-b153a60e1709@linux.ibm.com> (raw)
In-Reply-To: <61165430-a724-40d3-a00d-2cbe1ea656b0@linux.ibm.com>

Hi Christoph,

A gentle ping on this one... Do you have any further comments on this?

Thanks,
--Nilay

On 9/2/26 7:57 PM, Nilay Shroff wrote:
> On 9/2/26 7:43 PM, Christoph Hellwig wrote:
>> On Wed, Sep 02, 2026 at 07:39:32PM +0530, Nilay Shroff wrote:
>>> So the practical problem is that an open multipath head can continue to
>>> be used after its underlying transport module has been unloaded. The
>>> proposed change keeps the transport module referenced while the head
>>> node is open, preventing the module from being unloaded in this
>>> scenario.
>>
>> But why do you unload it in the first place?
>>
> Well, in my view, unloading a module while it is not in use should be a legitimate operation.
> 
> In the example shown earlier, the NVMe transport module is still being
> used by the open multipath head. Shouldn't we explicitly reflect that by
> incrementing its module refcount? We don't explicitly unload the module
> as part of normal NVMe operation, but in theory I think the transport module
> should remain referenced for as long as it is being used. That would also
> prohibit user from unloading module by mistake.
> 
> Thanks,
> --Nilay



  reply	other threads:[~2026-09-13 14:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 15:19 [PATCH 0/2] nvme: add reference counting for transport modules Nilay Shroff
2026-08-31 15:19 ` [PATCH 1/2] nvme: keep transport module referenced while head node is open Nilay Shroff
2026-09-01 16:39   ` Keith Busch
2026-09-02  4:55     ` Nilay Shroff
2026-09-02  0:20   ` Wen Xiong
2026-09-02 13:31   ` Christoph Hellwig
2026-09-02 14:09     ` Nilay Shroff
2026-09-02 14:13       ` Christoph Hellwig
2026-09-02 14:25         ` Keith Busch
2026-09-02 14:27         ` Nilay Shroff
2026-09-13 14:03           ` Nilay Shroff [this message]
2026-08-31 15:19 ` [PATCH 2/2] nvme: add context annotation for nvme_ns_head::nr_openers Nilay Shroff
2026-09-01  8:14 ` [PATCH 0/2] nvme: add reference counting for transport modules John Garry
2026-09-01  9:47   ` Nilay Shroff
2026-09-01 10:14     ` John Garry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57629796-d346-4cc4-8c9c-b153a60e1709@linux.ibm.com \
    --to=nilay@linux.ibm.com \
    --cc=axboe@kernel.dk \
    --cc=gjoyce@linux.ibm.com \
    --cc=hch@lst.de \
    --cc=john.g.garry@oracle.com \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    --cc=wenxiong@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox