All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: zoned: fix writes on a compressed zoned filesystem
@ 2021-05-12 14:01 Johannes Thumshirn
  2021-05-12 14:01 ` [PATCH 1/2] btrfs: zoned: pass start block to btrfs_use_zone_append Johannes Thumshirn
  2021-05-12 14:01 ` [PATCH 2/2] btrfs: zoned: fix compressed writes Johannes Thumshirn
  0 siblings, 2 replies; 9+ messages in thread
From: Johannes Thumshirn @ 2021-05-12 14:01 UTC (permalink / raw)
  To: David Sterba; +Cc: Johannes Thumshirn, linux-btrfs

David reported that I/O errors get thrown on a zoned filesystem with
compression enabled.

This happens because we're using regular writes instead of zoned append, but
with regular writes and increased parallelism, we cannot guarantee the data
placement requirements can be met.

This series switches the compressed I/O submission path to zone append writing
on a zoned filesystem.

Johannes Thumshirn (2):
  btrfs: zoned: pass start block to btrfs_use_zone_append
  btrfs: zoned: fix compressed writes

 fs/btrfs/compression.c | 44 ++++++++++++++++++++++++++++++++++++++----
 fs/btrfs/extent_io.c   |  2 +-
 fs/btrfs/inode.c       |  2 +-
 fs/btrfs/zoned.c       |  4 ++--
 fs/btrfs/zoned.h       |  5 ++---
 5 files changed, 46 insertions(+), 11 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-05-17 11:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 14:01 [PATCH 0/2] btrfs: zoned: fix writes on a compressed zoned filesystem Johannes Thumshirn
2021-05-12 14:01 ` [PATCH 1/2] btrfs: zoned: pass start block to btrfs_use_zone_append Johannes Thumshirn
2021-05-12 14:01 ` [PATCH 2/2] btrfs: zoned: fix compressed writes Johannes Thumshirn
2021-05-12 14:42   ` David Sterba
2021-05-17  7:07     ` Johannes Thumshirn
2021-05-17  9:12       ` David Sterba
2021-05-17  9:20         ` Johannes Thumshirn
2021-05-17 11:21       ` Johannes Thumshirn
2021-05-17 11:39         ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.