Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: "Naohiro Aota" <Naohiro.Aota@wdc.com>
To: "Johannes Thumshirn" <johannes.thumshirn@wdc.com>,
	<linux-btrfs@vger.kernel.org>
Cc: "Naohiro Aota" <naohiro.aota@wdc.com>
Subject: Re: [PATCH] btrfs: zoned: don't fail start_transaction() after a forced commit
Date: Tue, 17 Nov 2026 15:20:48 +0900	[thread overview]
Message-ID: <DMX9OT084S52.2QI3ED9OLFGJV@wdc.com> (raw)
In-Reply-To: <20261110074523.1199319-1-johannes.thumshirn@wdc.com>

On Tue Nov 10, 2026 at 4:45 PM JST, Johannes Thumshirn wrote:
> On zoned filesystems btrfs_delayed_refs_rsv_refill() returns -EAGAIN if
> the delayed refs reserve exceeds half of the usable metadata space.
> start_transaction() then commits the current transaction and refills
> again. With concurrent writers, or once most of the metadata space-info
> is zone_unusable, the second refill can still exceed the cap and the
> -EAGAIN is returned from btrfs_start_transaction(). fsync(2) passes it on
> to user space.
>
> The cap is only meant to trigger a commit instead of overcommitting
> metadata. After the commit has run, continue without refilling the
> delayed refs reserve instead of failing the transaction start.
>
> Fixes: 7bcb04de982f ("btrfs: zoned: cap delayed refs metadata reservation to avoid overcommit")
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

Looks good to me.

Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>

      parent reply	other threads:[~2026-11-17  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  7:45 [PATCH] btrfs: zoned: don't fail start_transaction() after a forced commit Johannes Thumshirn
2026-11-16 20:58 ` Filipe Manana
2026-11-17  6:20 ` Naohiro Aota [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DMX9OT084S52.2QI3ED9OLFGJV@wdc.com \
    --to=naohiro.aota@wdc.com \
    --cc=johannes.thumshirn@wdc.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox