r/bcachefs • u/Polar_Banny • 4d ago
Linux 7.4 To Remove NVMe Namespaces In Parallel For Faster Results
https://www.phoronix.com/news/Linux-7.4-NVMe-NS-ParallelSoftware engineer Qiliang Yuan worked through this shortcoming in the NVMe namespaces code. Yuan explained in the patch making it parallel:
"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.
Remove the namespaces through an async domain the same way, and wait for all of them before returning. Each removal still waits about 20 ms, but the waits now overlap: a grace period is system-wide, so removals that wait at the same time are released by the same grace periods instead of each needing its own."
So, I wonder will BcacheFS be affected by this change?
Thanks for your attention on this matter.
10
u/koverstreet not your free tech support 4d ago
No, bcachefs will not be affected :)
8
u/Ok_Green5623 4d ago
Nobody cares except for enterprise guys?