Next Bcachefs Release Aims to Include Rust Code in the Kernel Module

voxadam1 pts0 comments

Next Bcachefs Release Aims To Include Rust Code In The Kernel Module - 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

Next Bcachefs Release Aims To Include Rust Code In The Kernel Module

Written by Michael Larabel in Linux Storage on 29 June 2026 at 03:30 PM EDT. 7 Comments

The Bcachefs file-system already makes use of the Rust programming language in the user-space tools for this CoW file-system and they have been planning to make use of Rust within the kernel module too. Beginning in the next Bcachefs release, v1.38.7, they are looking at beginning to include Rust code now in their kernel driver.

Bcachefs 1.38.6 debuted just days ago with some nice improvements while already its lead developer, Kent Overstreet, is eyeing big changes for Bcachefs 1.38.7. In a post today he outlined plans for Bcachefs 1.38.7 to be the first release where they begin including Rust in the in-kernel Bcachefs module. Initially it will be a soft dependency while they get their deployment processes handled and related infrastructure laid.

This plan to use Rust within the Bcachefs kernel module does complicate the handling with Bcachefs being out-of-tree. Kent Overstreet noted the challenges in using the Dynamic Kernel Module System (DKMS) builds around Rust. DKMS builds of Rust modules are "not going to be practical" for most users due to the installed version of Rustc needing to match the version used to compile the kernel, given Rust's lack of a stable ABI.

Furthermore, the same Rust stdlib sources need to be installed, the bindgen CLI version also needs to be installed, and some Rust artifacts from the kernel build must also be present. Thus Bcachefs is ultimately planning to target more normal distribution binary packages for kernel modules rather than DKMS builds moving ahead. This will be a similar challenge to any other project with out-of-tree Rust kernel modules.

More details on the Rust code in Bcachefs kernel module plans can be found via today's Patreon post.

7 Comments

Tweet

Linux MD RAID5 Seeing Scalability Improvements Up To 17%<br>KSMBD Adds SMB2 Compression Support In Linux 7.2<br>NTFS3 Driver Sees Bug Fixes & Minor Improvements With Linux 7.2<br>F2FS Integrates FSERROR Reporting, Reduces Memory Footprint In Linux 7.2<br>EROFS With Linux 7.2 Better Handles Large Sparse AI Datasets, More Efficient I/O<br>exFAT File-System Enjoys Better Performance On Linux 7.2 With IOmap Conversion

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.

"Disgusting" Linux sched_ext Source Code Restructured Following Complaint By Linus Torvalds<br>Google's Gemini Partially Figures Out A Lengthy Linux Boot Time On Modern ASUS Laptop<br>Steam Machine Launches, Priced $1049 To $1428 USD<br>One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs<br>COSMIC's New System Monitor Is Looking Very Slick<br>Nourish: A New Wayland Compositor Powered By Vulkan With Infinite Scrolling/Panning<br>Linux Cache Aware Scheduling Extended For Even Better Performance: Up To 360% In MySQL<br>Linux 7.2 Staging Still Working To Tame The Realtek RTL8723BS "Beast Of A Driver"

Wine 11.12 Released With Wayland Fractional Scaling & Other Wayland Enhancements

Next Bcachefs Release Aims To Include Rust Code In The Kernel Module

Git 2.55 Released With Rust Support Enabled By Default, git history fixup

Microsoft Announces Public Preview For Linux Containers On WSL

Red Hat ARM Engineer Abandons ARM64 Linux Personal Desktop, Goes Back To AMD Ryzen System

Infinity Scheduler Aims To Be A Better Linux Scheduler

AMD Linux Patches Introduce New "Low Power" CPU Core Type

ZLUDA v6 Gets PhysX Running Well On AMD GPUs But Loses Commercial Funding

Mageia 10 Released For This Linux Distribution Carrying On The Mandrake Legacy

Arch Linux's Archinstall 4.4 Adds Dank Material Shell + Niri Desktop Option

Linux 7.2-rc1 Released: "Things Look Reasonably Normal" While Landing AMDGPU HDMI 2.1 FRL, AMD ISP4 & CAS

CachyOS June 2026 OS Released With More Performance Optimizations

Linux 7.3 To Introduce DRM "Color Format" Property With AMD GPU Driver Support

Linux 7.2 Surpasses More Than 43 Million Lines In The Kernel Tree

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...

linux rust kernel bcachefs module code

Related Articles