Re: [PATCH] nvme: Add module reference counting for multipath nvme device

Wen Xiong <[email protected]>
Newsgroups org.infradead.lists.linux-nvme
Message-ID <[email protected]>
On 2026-08-11 14:12, Keith Busch wrote:


> The result of nvme_find_path() is just the current path at the moment,
> so I don't think this is right.
> 
I thought:
- if policy is NUMA, returns current caches path if optimized.
- Otherwise scans other paths to find a new optimal path.

> I think you need the head to hold a module reference on every path the
> head has, so the module_get/put should be in nvme_mpath_add_disk and
> nvme_mpath_remove_disk.
I will check this.

Thanks for your reviewing!
Wendy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.