public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] btrfs: some speedups around nowait dio
@ 2022-03-23 16:19 fdmanana
  2022-03-23 16:19 ` [PATCH 1/8] btrfs: avoid blocking on page locks with nowait dio on compressed range fdmanana
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fdmanana @ 2022-03-23 16:19 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

This patchset makes our direct IO code behave better for NOWAIT writes,
avoiding blocking in several places for potentially long periods due to
waits for IO. It also removes running the same nocow checks twice (which
can be expensive) and doing extra path allocations. The last patch in
the series has a test and the results I got before and after applying
this patchset.

Filipe Manana (8):
  btrfs: avoid blocking on page locks with nowait dio on compressed range
  btrfs: avoid blocking nowait dio when locking file range
  btrfs: avoid double nocow check when doing nowait dio writes
  btrfs: stop allocating a path when checking if cross reference exists
  btrfs: free path at can_nocow_extent() before checking for checksum items
  btrfs: release path earlier at can_nocow_extent()
  btrfs: avoid blocking when allocating context for nowait dio read/write
  btrfs: avoid blocking on space revervation when doing nowait dio writes

 fs/btrfs/ctree.h          |   5 +-
 fs/btrfs/delalloc-space.c |   9 +--
 fs/btrfs/extent-tree.c    |   9 +--
 fs/btrfs/file.c           | 104 +++++++++++-----------------------
 fs/btrfs/inode.c          | 116 ++++++++++++++++++++++++++++----------
 fs/btrfs/qgroup.c         |   5 +-
 fs/btrfs/qgroup.h         |  12 ++--
 fs/btrfs/relocation.c     |   3 +-
 fs/btrfs/root-tree.c      |   3 +-
 9 files changed, 144 insertions(+), 122 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2022-03-25 20:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-23 16:19 [PATCH 0/8] btrfs: some speedups around nowait dio fdmanana
2022-03-23 16:19 ` [PATCH 1/8] btrfs: avoid blocking on page locks with nowait dio on compressed range fdmanana
2022-03-23 16:19 ` [PATCH 2/8] btrfs: avoid blocking nowait dio when locking file range fdmanana
2022-03-23 16:19 ` [PATCH 3/8] btrfs: avoid double nocow check when doing nowait dio writes fdmanana
2022-03-23 16:19 ` [PATCH 4/8] btrfs: stop allocating a path when checking if cross reference exists fdmanana
2022-03-23 16:19 ` [PATCH 5/8] btrfs: free path at can_nocow_extent() before checking for checksum items fdmanana
2022-03-23 16:19 ` [PATCH 6/8] btrfs: release path earlier at can_nocow_extent() fdmanana
2022-03-23 16:19 ` [PATCH 7/8] btrfs: avoid blocking when allocating context for nowait dio read/write fdmanana
2022-03-23 16:19 ` [PATCH 8/8] btrfs: avoid blocking on space revervation when doing nowait dio writes fdmanana
2022-03-25 20:34 ` [PATCH 0/8] btrfs: some speedups around nowait dio David Sterba

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