Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: prepare and move async csum generation out of experimental feautres
@ 2026-11-09 22:03 Qu Wenruo
  2026-11-09 22:03 ` [PATCH 1/2] btrfs: make btrfs_fs_info::workers to be a regular workqueue Qu Wenruo
  2026-11-09 22:03 ` [PATCH 2/2] btrfs: move async data csum generation out of experimental features Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2026-11-09 22:03 UTC (permalink / raw)
  To: linux-btrfs

Sashiko exposed several problems related to previous default async csum
generation, one fix related to encoded writes is already merged.

The remaining problem is related to the endio_workers reuse, which can
lead to problems as there are two different workloads in one workqueue,
and one workload (btrfs_bio_csum()) can even queue a new work into the
same workqueue.

The remaining problem is fixed by the first patch, by changing
btrfs_fs_info::workers into a regular workqueue, and let the
experimental csum generation to reuse it.

Then we can finally enable async data csum generation by default to
improve the data write performance, and completely get rid of the old
csum offloading behavior.

Qu Wenruo (2):
  btrfs: make btrfs_fs_info::workers to be a regular workqueue
  btrfs: move async data csum generation out of experimental features

 fs/btrfs/Kconfig     |   2 -
 fs/btrfs/bio.c       | 139 +------------------------------------------
 fs/btrfs/disk-io.c   |  47 ++++++---------
 fs/btrfs/file-item.c |  12 ++--
 fs/btrfs/file-item.h |   2 +-
 fs/btrfs/fs.h        |  17 +-----
 fs/btrfs/super.c     |   2 +-
 7 files changed, 30 insertions(+), 191 deletions(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-11-09 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 22:03 [PATCH 0/2] btrfs: prepare and move async csum generation out of experimental feautres Qu Wenruo
2026-11-09 22:03 ` [PATCH 1/2] btrfs: make btrfs_fs_info::workers to be a regular workqueue Qu Wenruo
2026-11-09 22:03 ` [PATCH 2/2] btrfs: move async data csum generation out of experimental features Qu Wenruo

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