]> git.hungrycats.org Git - linux/commit
DO-NOT-UPSTREAM: btrfs: sysfs force_fs_error, to raise a logical abort on demand
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 24 Sep 2026 21:27:53 +0000 (17:27 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 28 Oct 2026 20:54:55 +0000 (16:54 -0400)
commit8968252ad50b316eecf9e660052decfad40e1cd4
tree11ad103ab60672c61ccafac8e9d15ef43bf4ea06
parent493cea52681fc7b0c1e4105f625a636a9f9e7512
DO-NOT-UPSTREAM: btrfs: sysfs force_fs_error, to raise a logical abort on demand

Directed-test instrument for the stripe run retire bail branches
(retire-bail-metaenospc-repro.sh).  The bail needs BTRFS_FS_ERROR set by a
task that is not the one parked in the drain, and every natural source of
that is circular: the drain sits inside the transaction commit, so the
commit cannot get to the delayed-ref accounting that would ENOSPC, and
anything trying to raise one from outside blocks in wait_current_trans()
behind that same commit.  Device errors do not work either, since an
errored bio still completes and reports its bytes, so the drain settles
rather than bailing.

Under CONFIG_BTRFS_DEBUG only.  Carried in topics/dm-stripfault with the
other test fixtures, to be dropped before upstream submission.  Originally
written 2026-09-24 for the A/B of the retire bail fixes (6b98b399d957),
which only ever lived on test branches; without it the directed test has
skipped on both lanes since.

Assisted-by: Claude:claude-opus-5
Assisted-by: Claude:claude-opus-5-5
fs/btrfs/sysfs.c