[PATCH v2] nvme: remove namespaces in parallel
Keith Busch
kbusch at kernel.org
Fri Nov 6 08:41:35 PST 2026
On Tue, 03 Nov 2026 01:28:02 -0500, Qiliang Yuan wrote:
> nvme_remove_namespaces() removes the namespaces of a controller one
> after another. Each removal waits for RCU grace periods in
> del_gendisk() for the namespace and for its multipath head, about
> 20 ms in all.
>
> Deleting a controller, such as disconnecting from a fabrics target,
> thus takes time proportional to its namespace count, over a second for
> 64 namespaces. Scanning had the same problem until commit 4e893ca81170
> ("nvme_core: scan namespaces asynchronously") made it add namespaces
> in parallel.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme: remove namespaces in parallel
commit: fc991838ef25f1cab9ff34b55b39f16d95ed39b3
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list