A change merged for Linux 7.4 removes NVMe namespaces in parallel, reducing delays when disconnecting controllers with many namespaces.
A block-subsystem change merged for the Linux 7.4 kernel makes NVMe namespace removal run in parallel instead of deleting namespaces one at a time.
The optimization targets operations such as disconnecting from an NVMe over Fabrics target. The existing sequential process could take more than a second for a controller with 64 namespaces because each removal waits for an RCU grace period.
Software engineer Qiliang Yuan said the new asynchronous approach overlaps those waits and waits for all removals to finish before returning. The change is relevant to deployments that use NVMe namespaces for multi-tenant environments and workload isolation.