• Linux 7.0 Merges “Significant Improvement” For close_range System Call The close_range system call for closing all file descriptors “FDs” in a given range should enjoy a nice speed boost with the in-development Linux 7.0 kernel. • Last week saw all the feature-heavy VFS pull requests that brought nullfs and open_tree_namespace, standardized generic I/O error reporting, non-blocking timestamps, and other improvements. • Sent out on Monday were some lingering VFS patches mailed out by Christian Brauner. • Notable with the vfs misc 2 pull is optimizing the close_range system call. • The close_range usage drops from O(range size) to O(active FDs) with now being more efficient to provide a “significant improvement” for large range close operations on sparse file descriptor tables. • Brauner summed it up as: The close_range system call is used to close all file descriptors in a given range on the system.
Sources: