Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] btrfs: qgroup: rescan related message minor fixes
@ 2026-11-20  9:41 Qu Wenruo
  2026-11-20  9:41 ` [PATCH v2 1/3] btrfs: qgroup: handle the transaction commit error during rescan Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2026-11-20  9:41 UTC (permalink / raw)
  To: linux-btrfs

[CHANGELOG]
v2:
- Handle cancelled-after-finished case better
  So cancelled is only update when the rescan is stopped. This means
  if the rescan is finished properly then cancelled before we commit
  everything, at least we still treat the rescan as finished.

  This is pointed by sashiko, but I won't handle it any further, as it's
  a long existing cancel-rescan race. I don't think it's that important
  either.

- Reorder the error messages priority
  Now the failure has the highest priority.

The first one is from Sashiko.

The second one is to make sure we output the rescan related message even
if we failed to start a transaction (e.g. transaction aborted).

The final one is to fix a bug that rescan cancelled message is never
shown.

But the final one is also prone to race between scan and cancel. I don't
think there is any good way to really fix that yet nor is really caused by
this patch.

So I'll mostly ignore future scan-cancel race related review from sashiko
on the last patch.

Qu Wenruo (3):
  btrfs: qgroup: handle the transaction commit error during rescan
  btrfs: qgroup: ensure the qgroup rescan messages are always shown
  btrfs: qgroup: show the "qgroup scan cancelled" message correctly

 fs/btrfs/qgroup.c | 42 +++++++++++++++++++++++++++---------------
 1 file changed, 27 insertions(+), 15 deletions(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-20  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  9:41 [PATCH v2 0/3] btrfs: qgroup: rescan related message minor fixes Qu Wenruo
2026-11-20  9:41 ` [PATCH v2 1/3] btrfs: qgroup: handle the transaction commit error during rescan Qu Wenruo
2026-11-20  9:41 ` [PATCH v2 2/3] btrfs: qgroup: ensure the qgroup rescan messages are always shown Qu Wenruo
2026-11-20  9:41 ` [PATCH v2 3/3] btrfs: qgroup: show the "qgroup scan cancelled" message correctly Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox