From: Qu Wenruo <wqu@suse.com>
To: Cheng Yongkang <teel4res@gmail.com>
Cc: David Sterba <dsterba@suse.com>, Chris Mason <mason@kernel.org>,
linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] btrfs: reject refs=0 subvolume without DEAD in SUBVOL_SYNC_WAIT
Date: Sun, 1 Nov 2026 18:57:13 +1030 [thread overview]
Message-ID: <9ed1529d-3b4b-4b3d-8ab2-a84d902b6621@suse.com> (raw)
In-Reply-To: <20261101073317.1867816-1-teel4res@gmail.com>
在 2026/11/1 18:03, Cheng Yongkang 写道:
> Hi Qu,
>
> Thanks for taking the time to list these.
>
> To be upfront about where this came from: I work on automated bug
> finding for the kernel, and this ASSERT was one of its findings; the
> analysis and the patch were LLM-assisted. I sent a fix rather than a
> bare report because I had the impression that reports without a fix
> get little attention, but I'm not the right person to rework
> SUBVOL_SYNC_WAIT and add the btrfs-progs support and test cases you
> describe.
>
> One data point on the return value: in my testing on for-next, waiting
> for a subvolume that was being deleted returned -ENOENT once the
> cleaner had removed it, with and without this patch, so the success
> path is never reached.
>
> Since the tool keeps finding issues like this, I'd like to ask how you
> would prefer to receive them:
>
> - Would a [BUG] report with a reproducer, the tree and config, the
> trace and a short analysis be more useful to you than a patch I
> can't take further?
Yes, that would be preferred.
If you want, you can attach your LLM generated fix as a reference.
If it's really some simple fix, one of the co-developers will push your
patch with your fix.
If not, we will address it with your reported-by tags.
> - For low-priority cases like this one (a debug-only ASSERT in an
> ioctl with no real users), would you rather I batch them, or not
> send them at all?
If you have hit more than 10 of such ASSERT()s, report them in a batch.
Otherwise one by one is fine.
>
> If the ASSERT fix alone is still useful, I can send a v3 that only
> replaces it with -EUCLEAN.
I'll merge the v2 fix with modified commit message. You have no need to
resend.
> Otherwise I'm fine with dropping the patch
> and leaving this as a report.
>
> Thanks,
> Cheng Yongkang
prev parent reply other threads:[~2026-11-01 8:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 6:25 Cheng Yongkang
2026-11-01 6:51 ` Qu Wenruo
2026-11-01 7:18 ` Qu Wenruo
2026-11-01 7:33 ` Cheng Yongkang
2026-11-01 8:27 ` Qu Wenruo [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=9ed1529d-3b4b-4b3d-8ab2-a84d902b6621@suse.com \
--to=wqu@suse.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@kernel.org \
--cc=teel4res@gmail.com \
/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
all inboxes | Powered by JetHome®