Re: [PATCH v2] btrfs: simplify async csum synchronization
From: David Sterba
Date: Tue Nov 18 2025 - 07:14:16 EST
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.