[PATCH] nvme: Add module reference counting for multipath nvme device
Wen Xiong
wenxiong at linux.ibm.com
Tue Aug 11 13:33:19 PDT 2026
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
More information about the Linux-nvme
mailing list