Linux 6.2 Likely To Enable Btrfs Async Discard By Default

Written by Michael Larabel in Linux Storage on 28 October 2022 at 05:35 AM EDT. Add A Comment
Btrfs' async discard functionality will likely be turned on by default with the upcoming Linux 6.2 kernel cycle when running on an SSD.

Two years ago Btrfs introduced async discard support for moving the SSD TRIM/discard to the transaction commit. With the work done asynchronously, Facebook/Meta engineers found this to be more efficient and help reduce read latencies.

This feature can be turned on via the "discard=async" mount option but now that it's matured and helping in the real-world, Btrfs developers are planning to enable it by default. Async discard functionality would be automatically turned on whenever being mounted with a capable solid-state drive.

This patch by SUSE's David Sterba has been picked up in his Btrfs for-next branch ahead of the Linux 6.2 merge window in December.

Async discard will be turned on automatically for SSDs unless using the new "async=nodiscard" mount option for forcing off the support.

The default change ultimately stems from a two year old Fedora request for enabling async discard by default. That proposal also notes how Facebook/Meta has been using this option by default across their consumer-level hardware for some time now to great success.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week