[ Gearbest Technology News]Recently, a code adjustment in the Linux 7.2 development version has attracted the attention of the developer community. Surprisingly, the developers only modified the position of three lines of code, which improved the performance in some storage scenarios by about 5%.
Picture source network
According to public information, this optimization was submitted by developer Fengnan Chang and merged into the Linux 7.2 code base by Linux kernel maintainer Christian Brauner. The optimization mainly adjusts iomap-related logic and performs specific operations after the data processing process is completed, thereby avoiding an unnecessary memory cleanup process.
From a technical perspective, this optimization involves high-frequency storage read and write scenarios. When the system performs a large number of input and output operations, the original code will perform an additional memory write operation during each iteration, and this process will not actually have an impact on the final result. After the developers discovered this problem, they reduced the ineffective memory bandwidth consumption by just adjusting the execution order of three lines of code.
Test data shows that in scenarios based on NVMe solid-state drives, high IOPS load, and io_uring, the IOPS performance of two mainstream file systems, ext4 and xfs, increases by about 5%. IOPS, the number of input and output operations per second, is one of the important indicators to measure the performance of a storage system. Therefore, this improvement has practical significance for data centers, high-performance servers, and storage-intensive applications.
Compared with adding new features or large-scale code refactoring, the biggest feature of this optimization is that the changes are minimal but the results are obvious. Industry insiders believe that this also reflects the advantages of the long-term development of the Linux kernel – after years of accumulation, developers have begun to dig deeper into the underlying details and release hardware potential by reducing redundant operations.
The current Linux 7.1 version has just been released, and this optimization is expected to arrive with the official version of Linux 7.2. Although for ordinary users, a 5% performance improvement may be difficult to directly perceive, for high-load storage environments, such optimization is already of considerable value, and once again proves that fine tuning at the software level still has huge room for improvement.

