All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 5/5] zbd: Introduce thread zbd operations
@ 2020-04-27 18:45 Alexey Dobriyan
  2020-04-27 23:28 ` Damien Le Moal
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2020-04-27 18:45 UTC (permalink / raw)
  To: damien.lemoal; +Cc: fio

> -	if (td->o.zone_mode == ZONE_MODE_ZBD) {
> -		ret = zbd_adjust_block(td, io_u);
> -		if (ret == io_u_eof)
> -			return 1;
> -	}
> +	ret = zbd_adjust_block(td, io_u);
> +	if (ret == io_u_eof)
> +		return 1;

This is cleaner code but probably won't result in performance changes
because it is trading a branch and a regular function call to a branch
and indirect function call.


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 0/5] Assorted bug fixes and improvements
@ 2020-04-27  5:51 Damien Le Moal
  2020-04-27  5:51 ` [PATCH 5/5] zbd: Introduce thread zbd operations Damien Le Moal
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Le Moal @ 2020-04-27  5:51 UTC (permalink / raw)
  To: fio, Jens Axboe

The first 3 patches of this series fix bugs with write_iolog option
initialization (crash on initialization failure) and with zonemode=zbd
(one possible deadlock for read workloads and an assert trigerring with
verify option enabled).

The last 2 patches cleanup the use of zbd_xxx() functions from fio core
code to reduce the overhead when zonemode=zbd is not used.

Comments are welcome !

Damien Le Moal (5):
  iolog: Fix write_iolog_close()
  zbd: Fix potential deadlock on read operations
  zbd: Fix read with verify
  zbd: Introduce file zbd operations
  zbd: Introduce thread zbd operations

 file.h      |  5 ++-
 filesetup.c |  2 +-
 fio.h       |  8 +++++
 io_u.c      |  8 ++---
 iolog.c     |  3 ++
 zbd.c       | 87 +++++++++++++++++++++++++++++------------------------
 zbd.h       | 33 +++++++++++++++++---
 7 files changed, 94 insertions(+), 52 deletions(-)

-- 
2.25.4



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

end of thread, other threads:[~2020-04-27 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-27 18:45 [PATCH 5/5] zbd: Introduce thread zbd operations Alexey Dobriyan
2020-04-27 23:28 ` Damien Le Moal
  -- strict thread matches above, loose matches on Subject: below --
2020-04-27  5:51 [PATCH 0/5] Assorted bug fixes and improvements Damien Le Moal
2020-04-27  5:51 ` [PATCH 5/5] zbd: Introduce thread zbd operations Damien Le Moal

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.