fio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] improve zbd initialization
@ 2021-06-07  9:16 Niklas Cassel
  2021-06-07  9:16 ` [PATCH v2 2/4] zbd: allow zonemode=zbd with regular files by emulating zones Niklas Cassel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Niklas Cassel @ 2021-06-07  9:16 UTC (permalink / raw)
  To: axboe; +Cc: fio, Damien Le Moal, Niklas Cassel

From: Niklas Cassel <niklas.cassel@wdc.com>

Hello there,

This series improves zbd initialization, by making it more robust.
Previously, zbd_create_zone_info() could return success at the same
time as f->zbd_info was never initialized. Remove ZBD_IGNORE to
avoid this combination from being possible.

Also, zonemode=zbd can now be used with regular files by emulating
zones inside the file. (Just like how we already support emulating
zones inside a regular block device).


Kind regards,
Niklas


Changes since v1:
-Picked up Damien's Reviewed-by tags on patch 1 and 4.
-Addressed Damien's review comments on patch 2 and 3.

Niklas Cassel (4):
  zbd: disallow pipes for zonemode=zbd
  zbd: allow zonemode=zbd with regular files by emulating zones
  zbd: remove zbd_zoned_model ZBD_IGNORE
  zbd: change some f->zbd_info conditionals to asserts

 engines/libzbc.c            |  6 ++----
 engines/skeleton_external.c |  1 -
 oslib/linux-blkzoned.c      |  6 ++----
 zbd.c                       | 37 +++++++++++++++++++++++++------------
 zbd_types.h                 |  7 +++----
 5 files changed, 32 insertions(+), 25 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-06-07  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07  9:16 [PATCH v2 0/4] improve zbd initialization Niklas Cassel
2021-06-07  9:16 ` [PATCH v2 2/4] zbd: allow zonemode=zbd with regular files by emulating zones Niklas Cassel
2021-06-07  9:25   ` Damien Le Moal
2021-06-07  9:16 ` [PATCH v2 1/4] zbd: disallow pipes for zonemode=zbd Niklas Cassel
2021-06-07  9:16 ` [PATCH v2 4/4] zbd: change some f->zbd_info conditionals to asserts Niklas Cassel
2021-06-07  9:16 ` [PATCH v2 3/4] zbd: remove zbd_zoned_model ZBD_IGNORE Niklas Cassel
2021-06-07  9:26   ` Damien Le Moal

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).