btrfs: fix fsync failure with SQL Server workload
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: fix fsync failure and transaction abort after writes to prealloc extentsfs/ | +76 | 0 replies | |
| 2/3 | btrfs: fix misleading and incomplete comment of btrfs_truncate()fs/ | +17 | 0 replies | |
| 3/3 | btrfs: don't set the full sync flag when truncation does not touch extentsfs/ fs/ fs/ +1 more | +35 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Anand Jain |
|---|---|
| Series | T-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.
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