All of lore.kernel.org
 help / color / mirror / Atom feed
* defer all write I/O completions to process context
@ 2023-03-14 16:59 Christoph Hellwig
  2023-03-14 16:59 ` [PATCH 01/10] btrfs: use a plain workqueue for ordered_extent processing Christoph Hellwig
                   ` (10 more replies)
  0 siblings, 11 replies; 48+ messages in thread
From: Christoph Hellwig @ 2023-03-14 16:59 UTC (permalink / raw)
  To: Chris Mason, Josef Bacik, David Sterba; +Cc: Johannes Thumshirn, linux-btrfs

Hi all,

based on some of my own projects and Johannes raid-stripe-tree work it has
become a bit painful to drive much of the write I/O completion from the
potential irq context ->bi_end_io handler.  This series follows the steps
that XFS has taken about 10 years ago and defers all the end_io handling
to process contexts using a workqueue, which also allows to remove all
irq locking in btrfs (safe one spot that interacts with the pagecache).

I've run various data and metadata benchmarks, and the only significant
change is that the outliers to the high and low in repeated runs of
metadata heavy workloads seem to reduce while the average remains the
same.  I'm of course also interested in runs of additional workloads or
systems as this is a fairly significant change.

Diffstat:
 async-thread.c   |   17 ++++-------
 bio.c            |   82 ++++++++++++++++++++++++++++++++++++-------------------
 compression.c    |   34 ++++++----------------
 compression.h    |    7 +---
 disk-io.c        |   33 ++++++++++------------
 extent-io-tree.c |   12 ++------
 extent_io.c      |   27 +++++++-----------
 fs.h             |    6 ++--
 inode.c          |   19 +++---------
 ordered-data.c   |   68 ++++++++++++++++-----------------------------
 ordered-data.h   |    2 -
 subpage.c        |   65 +++++++++++++++++--------------------------
 super.c          |    2 -
 tree-log.c       |    4 +-
 14 files changed, 165 insertions(+), 213 deletions(-)

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

end of thread, other threads:[~2023-03-25 17:17 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 16:59 defer all write I/O completions to process context Christoph Hellwig
2023-03-14 16:59 ` [PATCH 01/10] btrfs: use a plain workqueue for ordered_extent processing Christoph Hellwig
2023-03-16 17:10   ` Johannes Thumshirn
2023-03-16 17:31   ` David Sterba
2023-03-20  6:12     ` Christoph Hellwig
2023-03-20 11:08   ` Qu Wenruo
2023-03-20 11:35     ` Qu Wenruo
2023-03-20 12:24       ` Christoph Hellwig
2023-03-20 23:19         ` Qu Wenruo
2023-03-21 12:48           ` Christoph Hellwig
2023-03-14 16:59 ` [PATCH 02/10] btrfs: refactor btrfs_end_io_wq Christoph Hellwig
2023-03-16 17:12   ` Johannes Thumshirn
2023-03-20 11:09   ` Qu Wenruo
2023-03-14 16:59 ` [PATCH 03/10] btrfs: offload all write I/O completions to a workqueue Christoph Hellwig
2023-03-16 17:14   ` Johannes Thumshirn
2023-03-20 11:29   ` Qu Wenruo
2023-03-20 12:30     ` Christoph Hellwig
2023-03-20 23:37       ` Qu Wenruo
2023-03-21 12:55         ` Christoph Hellwig
2023-03-21 23:37           ` Qu Wenruo
2023-03-22  8:32             ` Christoph Hellwig
2023-03-23  8:07               ` Qu Wenruo
2023-03-23  8:12                 ` Christoph Hellwig
2023-03-23  8:20                   ` Qu Wenruo
2023-03-24  1:11                     ` Christoph Hellwig
2023-03-23 14:53               ` Chris Mason
2023-03-24  1:09                 ` Christoph Hellwig
2023-03-24 13:25                   ` Chris Mason
2023-03-24 19:20                     ` Chris Mason
2023-03-25  8:13                       ` Christoph Hellwig
2023-03-25 17:16                         ` Chris Mason
2023-03-25  8:15                     ` Christoph Hellwig
2023-03-25  8:42                       ` Qu Wenruo
2023-03-14 16:59 ` [PATCH 04/10] btrfs: remove the compressed_write_workers workqueue Christoph Hellwig
2023-03-14 16:59 ` [PATCH 05/10] btrfs: remove irq disabling for btrfs_workqueue.list_lock Christoph Hellwig
2023-03-17 10:34   ` Johannes Thumshirn
2023-03-14 16:59 ` [PATCH 06/10] btrfs: remove irq disabling for subpage.list_lock Christoph Hellwig
2023-03-14 16:59 ` [PATCH 07/10] btrfs: remove irq disabling for leak_lock Christoph Hellwig
2023-03-17 10:35   ` Johannes Thumshirn
2023-03-14 16:59 ` [PATCH 08/10] btrfs: remove irq disabling for fs_info.ebleak_lock Christoph Hellwig
2023-03-17 10:35   ` Johannes Thumshirn
2023-03-14 16:59 ` [PATCH 09/10] btrfs: remove irq_disabling for ordered_tree.lock Christoph Hellwig
2023-03-17 10:36   ` Johannes Thumshirn
2023-03-20  6:12     ` Christoph Hellwig
2023-03-14 16:59 ` [PATCH 10/10] btrfs: remove confusing comments Christoph Hellwig
2023-03-17 10:37   ` Johannes Thumshirn
2023-03-17 10:39 ` defer all write I/O completions to process context Johannes Thumshirn
2023-03-20  6:14   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.