Flexible I/O Tester development
 help / color / mirror / Atom feed
* Re: [PATCH 3/3] zbd: Ensure first I/O is write for random read/write to sequential zones
@ 2020-04-13 21:21 Alexey Dobriyan
  2020-04-14  3:35 ` Shinichiro Kawasaki
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2020-04-13 21:21 UTC (permalink / raw)
  To: shinichiro.kawasaki; +Cc: damien.lemoaal, axboe, fio

> zbd_adjust_block


> +	if (td_rw(td) && !f->zbd_info->sectors_with_data
> +	    && !td->o.read_beyond_wp)
> +		io_u->ddir = DDIR_WRITE;

Oh, you've noticed this too. :-)

This will issue the first write with wrong length if bs[DDIR_READ] != bs[DDIR_WRITE].
Adjusting in zbd_adjust_block() is too late.


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH 0/3] zbd: Fix issues found with test script
@ 2020-04-13  8:32 Shin'ichiro Kawasaki
  2020-04-13  8:33 ` [PATCH 3/3] zbd: Ensure first I/O is write for random read/write to sequential zones Shin'ichiro Kawasaki
  0 siblings, 1 reply; 4+ messages in thread
From: Shin'ichiro Kawasaki @ 2020-04-13  8:32 UTC (permalink / raw)
  To: fio, Jens Axboe; +Cc: Damien Le Moal, Shinichiro Kawasaki

This series addresses issues found with t/zbd/test-zbd-support script runs with
various conditions. The three patches fix issues about maximum open zone check,
reset all zones and random read/write on empty zones, respectively.

Please consider this series for the fio upstream.

Shin'ichiro Kawasaki (3):
  t/zbd: Fix a bug in max_open_zones()
  t/zbd: Fix a bug in reset_zone() for all zones reset
  zbd: Ensure first I/O is write for random read/write to sequential
    zones

 t/zbd/functions |  6 +++---
 zbd.c           | 10 ++++++++++
 2 files changed, 13 insertions(+), 3 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2020-04-14  3:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-13 21:21 [PATCH 3/3] zbd: Ensure first I/O is write for random read/write to sequential zones Alexey Dobriyan
2020-04-14  3:35 ` Shinichiro Kawasaki
  -- strict thread matches above, loose matches on Subject: below --
2020-04-13  8:32 [PATCH 0/3] zbd: Fix issues found with test script Shin'ichiro Kawasaki
2020-04-13  8:33 ` [PATCH 3/3] zbd: Ensure first I/O is write for random read/write to sequential zones Shin'ichiro Kawasaki
2020-04-13  9:09   ` 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