linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] btrfs: implement metadata DUP for zoned mode
@ 2022-01-26 13:46 Johannes Thumshirn
  2022-01-26 13:46 ` [PATCH v2 1/4] btrfs: zoned: make zone activation multi stripe capable Johannes Thumshirn
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Johannes Thumshirn @ 2022-01-26 13:46 UTC (permalink / raw)
  To: David Sterba; +Cc: Johannes Thumshirn, linux-btrfs

Btrfs' default block-group profile for metadata on rotating devices has been
DUP for a long time. Recently the default also changed for non-rotating
devices.

Technically, there is no reason why btrfs on zoned devices can't use DUP for
metadata as well. All I/O to metadata block-groups is serialized via the
zoned_meta_io_lock and written with regular REQ_OP_WRITE operations. Therefore
reordering due to REQ_OP_ZONE_APPEND cannot happen on metadata (as opposed to
data).

The first three patches lay the groundwork by making sure zoned btrfs can work
with more than one stripe and the last patch then implements DUP on metadata
block groups in zoned btrfs.

Changes to v1:
* if only one zone is active, activate the other one as well

Johannes Thumshirn (4):
  btrfs: zoned: make zone activation multi stripe capable
  btrfs: zoned: make zone finishing multi stripe capable
  btrfs: zoned: prepare for allowing DUP on zoned
  btrfs: zoned: allow DUP on meta-data block groups

 fs/btrfs/zoned.c | 164 +++++++++++++++++++++++++++++++----------------
 1 file changed, 107 insertions(+), 57 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-01-28 21:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 13:46 [PATCH v2 0/4] btrfs: implement metadata DUP for zoned mode Johannes Thumshirn
2022-01-26 13:46 ` [PATCH v2 1/4] btrfs: zoned: make zone activation multi stripe capable Johannes Thumshirn
2022-01-26 13:46 ` [PATCH v2 2/4] btrfs: zoned: make zone finishing " Johannes Thumshirn
2022-01-26 13:46 ` [PATCH v2 3/4] btrfs: zoned: prepare for allowing DUP on zoned Johannes Thumshirn
2022-01-26 13:46 ` [PATCH v2 4/4] btrfs: zoned: allow DUP on meta-data block groups Johannes Thumshirn
2022-01-26 16:05 ` [PATCH v2 0/4] btrfs: implement metadata DUP for zoned mode David Sterba
2022-01-28 21:57   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).