Re: bio re-ordering

2022-02-18 Thread Warner Losh
On Fri, Feb 18, 2022 at 1:57 PM Poul-Henning Kamp wrote: > > Warner Losh writes: > > > The root of this problem, I think, is the following: > > % man 9 bio > > No manual entry for bio > > I think I'll have to massage this email into an appropriate man page. > > Please do, and c

Re: bio re-ordering

2022-02-18 Thread Poul-Henning Kamp
Warner Losh writes: > The root of this problem, I think, is the following: > % man 9 bio > No manual entry for bio > I think I'll have to massage this email into an appropriate man page. Please do, and charge the necessary beer to my account :-) -- Poul-Henning Kamp | U

Re: bio re-ordering

2022-02-18 Thread Warner Losh
So I spent some time looking at what BIO_ORDERED means in today's kernel and flavored it with my indoctrination of the ordering guarantees with BIO requests from when I wrote the CAM I/O scheduler. it's kinda long, but spells out what BIO_ORDERED means, where it can come from and who depends on it

Re: bio re-ordering

2022-02-18 Thread Peter Jeremy
On 2022-Feb-17 17:48:14 -0800, John-Mark Gurney wrote: >Peter Jeremy wrote this message on Sat, Feb 05, 2022 at 20:50 +1100: >> I've raised https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261731 to >> make geom_gate support BIO_ORDERED. Exposing the BIO_ORDERED flag to >> userland is quite easy

Re: bio re-ordering

2022-02-17 Thread John-Mark Gurney
Peter Jeremy wrote this message on Sat, Feb 05, 2022 at 20:50 +1100: > On 2022-Feb-02 11:49:44 +0200, Andriy Gapon wrote: > >On 02/02/2022 11:14, Warner Losh wrote: > >> On Wed, Feb 2, 2022 at 2:05 AM Andriy Gapon >> > wrote: > >> Hmm... it looks like both the old and

Re: bio re-ordering

2022-02-05 Thread Peter Jeremy
On 2022-Feb-02 11:49:44 +0200, Andriy Gapon wrote: >On 02/02/2022 11:14, Warner Losh wrote: >> On Wed, Feb 2, 2022 at 2:05 AM Andriy Gapon > > wrote: >> Hmm... it looks like both the old and new (Open)ZFS use BIO_FLUSH command >> without BIO_ORDERED flag.  Not sure

Re: bio re-ordering

2022-02-02 Thread Andriy Gapon
On 02/02/2022 11:14, Warner Losh wrote: On Wed, Feb 2, 2022 at 2:05 AM Andriy Gapon > wrote: Hmm... it looks like both the old and new (Open)ZFS use BIO_FLUSH command without BIO_ORDERED flag.  Not sure if it happens to do the right thing anyway or not. It'

Re: bio re-ordering

2022-02-02 Thread Andriy Gapon
On 02/02/2022 09:58, Warner Losh wrote: On Wed, Feb 2, 2022, 12:49 AM Peter Jeremy > wrote: Thanks all for the very prompt responses. On 2022-Jan-28 22:32:02 -0700, Warner Losh mailto:i...@bsdimp.com>> wrote: >I think that ufs relies on two ordering pr

Re: bio re-ordering

2022-02-01 Thread Peter Jeremy
Thanks all for the very prompt responses. On 2022-Jan-28 22:32:02 -0700, Warner Losh wrote: >I think that ufs relies on two ordering primitives, both marked with >BIO_ORDERED today. >That's what most of the drivers key off of. We always set BIO_ORDERED on >all the BIO_FLUSH >events as far as I Ca

Re: bio re-ordering

2022-01-28 Thread Konstantin Belousov
On Sat, Jan 29, 2022 at 03:29:39PM +1100, pet...@freebsd.org wrote: > I'm working on a GEOM Gate network client to better handle high-latency > connections and have some questions regarding bio ordering assumptions > (alternatively, how much should I be able to re-order bio requests without > break

bio re-ordering

2022-01-28 Thread peterj
I'm working on a GEOM Gate network client to better handle high-latency connections and have some questions regarding bio ordering assumptions (alternatively, how much should I be able to re-order bio requests without breaking things). Within geom_gate, an incoming bio request is retrieved from th