Skip to content

btrfs: some speedups around nowait dio

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: avoid blocking on page locks with nowait dio on compressed rangefs/btrfs/inode.c+26 -80 replies
2/8btrfs: avoid blocking nowait dio when locking file rangefs/btrfs/inode.c+23 -110 replies
3/8btrfs: avoid double nocow check when doing nowait dio writesfs/btrfs/file.c fs/btrfs/inode.c+39 -710 replies
4/8btrfs: stop allocating a path when checking if cross reference existsfs/btrfs/ctree.h fs/btrfs/extent-tree.c fs/btrfs/inode.c+7 -100 replies
5/8btrfs: free path at can_nocow_extent() before checking for checksum itemsfs/btrfs/inode.c+8 -00 replies
6/8btrfs: release path earlier at can_nocow_extent()fs/btrfs/inode.c+2 -20 replies
7/8btrfs: avoid blocking when allocating context for nowait dio read/writefs/btrfs/inode.c+9 -30 replies
8/8btrfs: avoid blocking on space revervation when doing nowait dio writesfs/btrfs/ctree.h fs/btrfs/delalloc-space.c fs/btrfs/file.c +5 more+31 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] btrfs: some speedups around nowait dio

From: Filipe Manana <[email protected]>

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(-)
Signature · 1 line
2.33.0