The upcoming Linux 7.4-rc4 kernel update introduces performance improvements for NVMe namespace management. The kernel will now support parallel deletion of NVMe namespaces, replacing the previous serial processing logic.
Previously, the kernel deleted namespaces one by one, with each operation requiring an RCU grace period of approximately 20 milliseconds. This serial approach caused significant delays in complex server environments, where deleting a controller with 64 namespaces could take over one second.
Software engineer Qiliang Yuan submitted the patch, which implements asynchronous deletion. By overlapping the RCU grace periods for multiple namespaces, the system can process deletions concurrently rather than waiting for each individual operation to complete sequentially.
This optimization mirrors the previously implemented asynchronous scanning method for adding namespaces. The new logic ensures that while individual deletion tasks still require their respective processing time, the total system wait time is reduced by sharing grace periods across concurrent tasks.






