Btrfs Change Coming For Linux 7.2 Yields Very Healthy Performance Gain - Phoronix
Articles & Reviews
News Archive
Forums
Premium Ad-Free<br>Contact
Popular Categories
Close
Articles & Reviews
News Archive
Forums
Premium
Contact
Categories
Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals
Btrfs Change Coming For Linux 7.2 Yields Very Healthy Performance Gain
Written by Michael Larabel in Linux Storage on 29 May 2026 at 07:17 AM EDT. 9 Comments
A change coming on the way for the upcoming Linux 7.2 kernel cycle is yielding a significant improvement to the direct I/O write performance. While a big gain, technically it's a regression fix after a change mistakenly dropped the behavior several years ago.
The change on its way to Linux 7.2 for Btrfs is to not force Direct I/O (DIO) writes to be serialized. Mark Harmstone with Meta discovered that Btrfs was mistakenly serializing DIO writes since 2023 when converting the file-system over to the new mount API for the Linux kernel. Harmstone explained with the change:
"Before btrfs switched to the new mount API in 2023, we were setting SB_NOSEC in btrfs_mount_root(). This flag tells the VFS that the filesystem may have files which don't have security xattrs, enabling it to do some optimizations.
Unfortunately this was missed in the transition, meaning that IS_NOSEC will always return false for a btrfs inode. This means that btrfs_direct_write() calls will always get the inode lock exclusively, meaning that DIO writes to the same file will be serialized.
On my machine, this one-line change results in a ~59% improvement in DIO throughput."
A very nice win with nearly 60% throughput improvement from 826 MB/s to 1311 MB/s.
Intel's Kernel Test Robot is also reporting around a 12% improvement for Btrfs with this change in their own test and hardware.
With the patch now in the "-next" code, look for this Btrfs change to land with the Linux 7.2 merge window happening in June.
9 Comments
Tweet
Btrfs Preps Huge Folios Support Ahead Of Linux 7.2<br>Linux 7.2 Expected To Introduce "OPENAT2_REGULAR" To Avoid Tricking Secure Programs<br>OpenZFS 2.4.2 Released With Linux 7.0 Kernel Support, Many Bug Fixes<br>F2FS Preparing FSERROR Reporting Support<br>Axboe Hacking On New Linux Patches For 60% Increase To Per-Core I/O Performance<br>DM-INLINECRYPT Expected For Linux 7.2 To Leverage Inline Encryption
Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.
FreeBSD Foundation Executive Director Tries Daily Driving FreeBSD On Laptop<br>Intel Introducing USB4STREAM Protocol For Linux - Opening Up Some Nifty Uses For USB4<br>AV2 Codec Looks Like It Will Be Officially Released Next Week<br>California's Age Verification Law May End Up Exempting Most Linux Distributions<br>Linux Sound Subsystem Also Seeing Many Fixes Driven By AI/LLMs<br>Today's Linux Networking Fixes: "Craziness Continues With No End In Sight"<br>GNOME Commander 2.0 Released Following Rewrite In Rust & GTK4<br>Linux Mint Making Improvements To Its File Manager, Theme & Dialogs
Linux Networking Still Seeing "Significantly Bigger" Pull Requests Due To AI
Btrfs Change Coming For Linux 7.2 Yields Very Healthy Performance Gain
Intel To Support DRM Background Color Property With Linux 7.2
Fedora 45 Considering Use Of PURL Metadata For Uniquely Identifying Software Packages
Linux 7.2 To Bring Graphics Driver Fix For Old Integrated Graphics On Intel Sandy Bridge
Radeon Software For Linux 26.12 Brings Ubuntu 26.04 Support
Linux 7.2's Open-Source Nouveau Driver To Finally Support The NVIDIA GA100
QEMU Shifting On AI Policy To Allow Some AI/LLM-Generated Contributions
Qualcomm Snapdragon C Announced For $300+ Laptops
Intel Arc G-Series Processors Announced For Handheld Gaming Devices
KDE Plasma 6.7 Beta 2 Released With More Bug Fixes
24 Years After The ATI R300 Launched, Open-Source R300 Driver Continues With Big Rework
GTK Introduces Snapping Feature For Better Fractional Scaling Experience
Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations.
Intel Arc Pro B70 BMG-G31 Linux Gaming Performance
Cache Aware Scheduling Shows Nice Wins For AMD Zen 5 On PostgreSQL, Valkey, Network Performance
NVIDIA Vera CPU Benchmarks: Olympus Cores Delivering The Best Performance Ever Seen On ARM
Linux Provides Better Performance With The AMD Ryzen 9 9950X3D2 Over Windows 11
NVIDIA RTX PRO Blackwell Performance Delivering...