Skip to content

btrfs: some optimizations and cleanups for log syncing

[email protected] linux-btrfs ltp oe-lkp 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v17 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: stop sleeping for one jiffy in non-ssd mounts during log commitfs/btrfs/ctree.h fs/btrfs/tree-log.c+1 -190 replies
2/5btrfs: remove log batch counter use for fsyncfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/file.c +1 more+1 -140 replies
3/5btrfs: move condition for log commit wait into wait_log_commit()fs/btrfs/tree-log.c+16 -252 replies
4/5btrfs: check for exit condition after waking in wait_log_commit()fs/btrfs/tree-log.c+4 -40 replies
5/5btrfs: use simple booleans for log_commit field in struct btrfs_rootfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/transaction.c +2 more+13 -190 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff Layton
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] btrfs: some optimizations and cleanups for log syncing

From: Filipe Manana <[email protected]>

Some optimizations for log syncing, specially for non-sdd mounts, and some cleanups. Details in the changelogs of each patch.

V2: Removed two patches which sashiko found problematic, the benefits of
fixing them up versus the complexity required to fix them is not worth it. Updated last patch to add the data_race() annotation in the trace events.

Filipe Manana (5):
btrfs: stop sleeping for one jiffy in non-ssd mounts during log commit
btrfs: remove log batch counter use for fsync
btrfs: move condition for log commit wait into wait_log_commit()
btrfs: check for exit condition after waking in wait_log_commit()
btrfs: use simple booleans for log_commit field in struct btrfs_root

 fs/btrfs/ctree.h             |  6 +--
 fs/btrfs/disk-io.c           |  3 --
 fs/btrfs/file.c              |  4 --
 fs/btrfs/transaction.c       |  8 +---
 fs/btrfs/tree-log.c          | 85 ++++++++++++------------------------
 include/trace/events/btrfs.h |  4 +-
 6 files changed, 32 insertions(+), 78 deletions(-)
Signature · 1 line
2.47.2