From: Wen Xiong <wenxiong@linux.ibm.com>
To: Keith Busch <kbusch@kernel.org>
Cc: linux-nvme@lists.infradead.org, gjoyce@linux.ibm.com,
wenxiong@us.ibm.com
Subject: Re: [PATCH] nvme: Add module reference counting for multipath nvme device
Date: Tue, 11 Aug 2026 22:59:37 -0500 [thread overview]
Message-ID: <809963f2edc80f2bbd05b8599f092d18@linux.ibm.com> (raw)
In-Reply-To: <anuK7GONhd3scxb-@kbusch-mbp>
On 2026-08-11 15:49, Keith Busch wrote:
> Let's say one path is rdma and the other is tcp. At the time you open,
> the RDMA is the current optimal path, so you take a reference on the
> nvme-rdma module. But while using this multipath device, the RDMA
> connection is lost, so we failover to the TCP path. When you close the
> multipath device, you find the TCP path, and then drop a reference on
> the nvme-tcp module, leaking the RDMA reference, and underflowing TCP.
Thanks for explaining this!
> Just a note, unlike I initially thought, nvme_mpath_remove_disk() is
> not
> the mirror teardown function to nvme_mpath_add_disk(), so the path's
> module reference put will have to be somewhere else, like
> nvme_mpath_remove_sysfs_link().
Thanks! I can regenerate the patch as v2 and test it soon.
Can I add module reference get in nvme_mpath_add_sysfs_link() instead of
nvme_mpath_add_disk()?
Thanks,
Wendy
prev parent reply other threads:[~2026-08-12 3:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 23:50 [PATCH] nvme: Add module reference counting for multipath nvme device wenxiong
2026-08-11 13:18 ` John Garry
2026-08-11 18:54 ` Wen Xiong
2026-08-12 8:43 ` John Garry
2026-08-11 19:12 ` Keith Busch
2026-08-11 20:33 ` Wen Xiong
2026-08-11 20:49 ` Keith Busch
2026-08-12 3:59 ` Wen Xiong [this message]
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=809963f2edc80f2bbd05b8599f092d18@linux.ibm.com \
--to=wenxiong@linux.ibm.com \
--cc=gjoyce@linux.ibm.com \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=wenxiong@us.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