This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hurd".
The branch, master has been updated
via 2eeab9f25af904b59761228c141d550acbe8b66c (commit)
via 269ca52d4c7320d5d7d3801c1cb0429e5ecf6e61 (commit)
via b77297e065d50cec6676ade525e14b207dfb9469 (commit)
via 64b0bd8a266198bdab2fb49f17cb5a6df085daa7 (commit)
from 1c4b16ac4633612dce0bce1bb44cfa8e07fe84f3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2eeab9f25af904b59761228c141d550acbe8b66c
Author: Milos Nikic <[email protected]>
Date: Thu Nov 5 05:28:27 2026 -0800
ext2fs: Replace the journal's intercept pool, and fix its crash consistency
The journal kept the pager writes it intercepted in a fixed pool of
1024 blocks. Under load the pool fills, and the writes then bypass the
journal ("Intercept Pool Full! Bypassing WAL"). The intercepted page
now goes into its transaction's own shadow copy, which is written home
after the commit: there is no pool to fill and no pool to risk becoming
full.
The rest are fixes found by crash and stress testing. Without them a
crash can leave a filesystem that recovery does not repair, such as a
corrupted orphan list after a halt right after a large upgrade.
What a crash leaves:
- The log start is on disk before a commit into an empty log is
durable; the tail moves only once what it releases is home and
flushed, and that log space is reused only then.
- An older copy of a block cannot be written home over a newer one: a
checkpoint against the flush after a commit, a sync against an edit,
escaped blocks written to the log from a copy.
- A read gets the journal's copy of a block still due for a home write.
- Freed blocks stay busy until their free commits, and come back in
transaction order.
- An indirect block, and a new inode's block, are reserved before they
are edited, and an inode is written in its caller's handle.
- The orphan list is recovered when the filesystem becomes writable.
Pager writes: a sync keeps the shadow of a page the kernel keeps, and
the disk cache copy of a directory block is never journaled.
Failures: a failed commit aborts the journal and the filesystem goes
read-only with the RPCs inhibited; a transaction larger than the
journal is refused before any of it is written; a stop that cannot
empty the journal keeps it for e2fsck, and stops kjournald.
Concurrency: a full transaction commits while handles are open, a
transaction that only frees blocks commits, the journal is published to
the pager threads safely, and each entry point locks the journal it
works on once.
Message-ID: <[email protected]>
commit 269ca52d4c7320d5d7d3801c1cb0429e5ecf6e61
Author: Milos Nikic <[email protected]>
Date: Thu Nov 5 05:28:26 2026 -0800
libdiskfs: Keep the orphan list right for files without links
A node from dir_mkfile has no links from the start but was never put on
the orphan list: after a crash while it was open, e2fsck found an inode
in use without links and freed it as an error. Add it to the list
before its first update, as ext4 does for O_TMPFILE.
dir_link left a file on the orphan list when it gave it a link, so the
list held a linked file, which recovery would treat as an unfinished
truncation. Take it off.
Message-ID: <[email protected]>
commit b77297e065d50cec6676ade525e14b207dfb9469
Author: Milos Nikic <[email protected]>
Date: Thu Nov 5 05:28:25 2026 -0800
libdiskfs: Fix the journal handles of RPCs
Several RPCs opened, ended or held their journal handle in ways that
could deadlock, stall a commit, or lose a commit's error:
- An inode write could be the outermost handle start with the node
lock held, which can wait for a commit that drains a transaction
whose participant needs that lock. Open the handle before the node
lock on every path to diskfs_node_update.
- io_write and io_read held their handle through the data copy, which
can wait for the disk or for memory, and every commit with it.
Release it once the metadata is done, unless the RPC must commit.
- diskfs_journal_commit_transaction now returns an error, which
file_sync passes on.
- An operation that needs a block on a full disk whose free blocks were
freed by its own transaction got ENOSPC, although they come back at
the next commit. io_write, dir_mkdir, dir_link, dir_rename,
dir_lookup with O_CREAT and file_set_translator now let go of
everything and try again, as ext4_should_retry_alloc does, through a
new diskfs_journal_should_retry_alloc hook and diskfs_retry_enospc.
- diskfs_rename_dir committed its nested handle on a synchronous mount,
which asserts; it now only stops it.
ext2fs gets its side of the changed and new hooks.
Message-ID: <[email protected]>
commit 64b0bd8a266198bdab2fb49f17cb5a6df085daa7
Author: Milos Nikic <[email protected]>
Date: Thu Nov 5 05:28:24 2026 -0800
libpager: Tell the write callbacks whether the kernel keeps the pages
memory_object_data_return says, in KCOPY, whether the kernel keeps the
pages it returns (a clean, as for a sync) or evicts them. The
callbacks did not get it. A kept page can already be newer than the
copy being written, which the kernel took when it was asked for it;
a pager that keeps its own copy of what it is given needs to know.
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
ext2fs/balloc.c | 11 +
ext2fs/ext2fs.c | 4 +-
ext2fs/ext2fs.h | 29 +-
ext2fs/getblk.c | 12 +-
ext2fs/hyper.c | 30 +-
ext2fs/ialloc.c | 21 +-
ext2fs/inode.c | 22 +-
ext2fs/journal.c | 1741 +++++++++++++++++++++++++++++---------------
ext2fs/journal.h | 26 +-
ext2fs/orphan.c | 10 +
ext2fs/pager.c | 107 ++-
ext2fs/truncate.c | 25 +-
libdiskfs/dir-link.c | 26 +-
libdiskfs/dir-lookup.c | 46 +-
libdiskfs/dir-mkdir.c | 19 +-
libdiskfs/dir-readdir.c | 10 +-
libdiskfs/dir-rename.c | 26 +-
libdiskfs/dir-renamed.c | 6 +-
libdiskfs/diskfs.h | 17 +-
libdiskfs/file-get-trans.c | 8 +-
libdiskfs/file-set-trans.c | 39 +-
libdiskfs/file-sync.c | 10 +-
libdiskfs/fsys-getroot.c | 14 +
libdiskfs/init-startup.c | 6 +
libdiskfs/io-get-conch.c | 7 +
libdiskfs/io-modes-off.c | 7 +
libdiskfs/io-modes-on.c | 7 +
libdiskfs/io-modes-set.c | 7 +
libdiskfs/io-read.c | 17 +-
libdiskfs/io-readable.c | 6 +
libdiskfs/io-rel-conch.c | 7 +
libdiskfs/io-seek.c | 6 +
libdiskfs/io-write.c | 19 +
libdiskfs/journal.c | 18 +-
libdiskfs/node-create.c | 6 +
libdiskfs/priv.h | 15 +
libpager/data-return.c | 11 +
libpager/pager.h | 7 +
38 files changed, 1698 insertions(+), 707 deletions(-)
hooks/post-receive
--
Hurd