Skip to content

btrfs: fix fsync failure with SQL Server workload

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: fix fsync failure and transaction abort after writes to prealloc extentsfs/btrfs/file-item.c+76 -220 replies
2/3btrfs: fix misleading and incomplete comment of btrfs_truncate()fs/btrfs/inode.c+17 -70 replies
3/3btrfs: don't set the full sync flag when truncation does not touch extentsfs/btrfs/ctree.h fs/btrfs/free-space-cache.c fs/btrfs/inode.c +1 more+35 -150 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchAnand Jain
SeriesT-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] btrfs: fix fsync failure with SQL Server workload

From: Filipe Manana <[email protected]>

This patchset fixes a fsync failure (-EIO) and transaction abort during a workload for Microsoft's SQL Server running in a Docker container as reported at:

https://lore.kernel.org/linux-btrfs/[email protected]/

It also adds an optimization for the workload, by removing lots of fsyncs that trigger the slow code path and replacing them with ones that use the fast path, reducing the workload's runtime by about -12% on my test box.

Filipe Manana (3):
btrfs: fix fsync failure and transaction abort after writes to
prealloc extents
btrfs: fix misleading and incomplete comment of btrfs_truncate()
btrfs: don't set the full sync flag when truncation does not touch
extents

 fs/btrfs/ctree.h            |  2 +-
 fs/btrfs/file-item.c        | 98 ++++++++++++++++++++++++++++---------
 fs/btrfs/free-space-cache.c |  2 +-
 fs/btrfs/inode.c            | 65 +++++++++++++++++-------
 fs/btrfs/tree-log.c         |  5 +-
 5 files changed, 128 insertions(+), 44 deletions(-)
Signature · 1 line
2.28.0