Tucked into this week’s block subsystem fixes for Linux 7.4-rc4 is a nice NVMe change, per Phoronix: the kernel now removes NVMe namespaces in parallel instead of one after another.
Software engineer Qiliang Yuan explained the problem in the patch. Each namespace removal waits for RCU grace periods in del_gendisk() for the namespace and its multipath head, about 20 ms total. Deleting a controller, like disconnecting from an NVMe-over-fabrics target, took time proportional to the namespace count: over a second for 64 namespaces. Scanning already went parallel in an earlier commit; now removal goes through an async domain the same way. Each removal still waits about 20 ms, but since grace periods are system-wide, the waits overlap.
My take
Most desktops have one namespace and will never notice. But if you carve up NVMe for multi-tenant boxes, workload isolation or fabrics storage, this is a free speedup on disconnects and teardown. Small, clean kernel wins like this are my favorite kind.
God Bless, and May the Source Be with You!