kraptor23 a45cdc032b
checkstyle / checkstyle (push) Canceled after 0s
zfs-arm / ZFS ARM build (push) Canceled after 0s
unit-tests / unit-tests (push) Canceled after 0s
zfs-precheck / Detect (push) Canceled after 0s
zfs-precheck / Verify (push) Canceled after 0s
zfs-precheck / Verdict (push) Canceled after 0s
CodeQL / Analyze (cpp) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
zloop / zloop (push) Canceled after 0s
zfs-qemu / Setup (push) Canceled after 0s
zfs-qemu / qemu-x86 (push) Canceled after 0s
zfs-qemu / Cleanup (push) Canceled after 0s
smatch / smatch (push) Canceled after 0s
arc_read(): allocate the read buffer before inserting the header
On a miss without a header, arc_read() inserts the new header into
the hash table and then allocates its data buffer with the hash lock
held.  Under memory pressure that allocation can sit in direct
reclaim, blocking every other user of the hash lock, including
arc_buf_destroy() from dbuf eviction and, through it, txg_sync.

Allocate the buffer before buf_hash_insert(), while the header is
still private.  If the insert loses the race, arc_hdr_destroy() frees
the buffer with the header.  Headers that are already hashed (ghost,
or raw data requested) still allocate under the hash lock.

Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Karl Schulze <karl@taniustech.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Closes #19780
2026-11-27 11:27:48 -05:00
2026-11-13 10:19:29 -08:00
2026-10-01 11:03:09 -07:00
2022-12-22 11:34:28 -08:00
2020-06-09 21:24:09 -07:00
2018-05-29 16:00:33 -07:00
2026-10-25 17:28:51 -07:00
2020-08-26 21:44:41 -07:00
2018-05-29 16:00:33 -07:00
2026-07-08 14:35:46 -07:00
2020-03-16 10:46:03 -07:00

img

OpenZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community. This repository contains the code for running OpenZFS on Linux and FreeBSD.

codecov coverity

Official Resources

Installation

Full documentation for installing OpenZFS on your favorite operating system can be found at the Getting Started Page.

Contribute & Develop

We have a separate document with contribution guidelines.

We have a Code of Conduct.

Release

OpenZFS is released under a CDDL license. For more details see the NOTICE, LICENSE and COPYRIGHT files; UCRL-CODE-235197

Supported Kernels and Distributions

Linux

Given the wide variety of Linux environments, we prioritize development and testing on stable, supported kernels and distributions.

Kernel (kernel.org)

All longterm kernels from kernel.org are supported. stable kernels are usually supported in the next OpenZFS release.

Supported longterm kernels: 6.18, 6.12, 6.6, 6.1, 5.15, 5.10.

Red Hat Enterprise Linux (RHEL)

All RHEL (and compatible systems: AlmaLinux OS, Rocky Linux, etc) on the full or maintenance support tracks are supported.

Supported RHEL releases: 8.10, 9.7, 10.1.

Ubuntu

All Ubuntu LTS releases are supported.

Supported Ubuntu releases: 26.04 “Resolute”, 24.04 “Noble”, 22.04 “Jammy”.

Debian

All Debian stable and LTS releases are supported.

Supported Debian releases: 13 “Trixie”, 12 “Bookworm”, 11 “Bullseye”.

Other Distributions

Generally, if a distribution is following an LTS kernel, it should work well with OpenZFS.

FreeBSD

All FreeBSD releases receiving security support are supported by OpenZFS.

Supported FreeBSD releases: 15.1, 14.4.

S
Description
No description provided
Readme
415 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 68.8%
Shell 21.2%
Assembly 4.8%
Python 1.6%
M4 1.4%
Other 2.2%