Re: [PATCH v2] btrfs: simplify async csum synchronization

From: David Sterba
Date: Mon Nov 24 2025 - 13:10:26 EST


On Tue, Nov 18, 2025 at 01:07:16PM +0100, David Sterba wrote:
> On Thu, Nov 13, 2025 at 11:17:30AM +0100, Daniel Vacek wrote:
> > We don't need the redundant completion csum_done which marks the
> > csum work has been executed. We can simply flush_work() instead.
> >
> > This way we can slim down the btrfs_bio structure by 32 bytes matching
> > it's size to what it used to be before introducing the async csums.
> > Hence not making any change with respect to the structure size.
> > ---
> > This is a simple fixup for "btrfs: introduce btrfs_bio::async_csum" in
> > for-next and can be squashed into it.
> >
> > v2: metadata is not checksummed here so use the endio_workers workqueue
> > unconditionally. Thanks to Qu Wenruo.
>
> This looks quite useful regarding the size reduction of btrfs_bio,
> please fold it to the patch. Thanks.

The 6.19 branch is now frozen so this patch will be applied separately
later.