Thread (25 messages) 25 messages, 5 authors, 2016-10-11

Re: [Nbd] [PATCH][V3] nbd: add multi-connection support

flat view

From: Alex Bligh <hidden>
Date: 2016-10-02 16:17:19
Also in: lkml

On 29 Sep 2016, at 17:59, Josef Bacik [off-list ref] wrote:
=20
On 09/29/2016 12:41 PM, Wouter Verhelst wrote:
quoted
On Thu, Sep 29, 2016 at 10:03:50AM -0400, Josef Bacik wrote:
quoted
So think of it like normal disks with multiple channels.  We don't =
send flushes
quoted
quoted
down all the hwq's to make sure they are clear, we leave that =
decision up to the
quoted
quoted
application (usually a FS of course).
=20
Well, when I asked earlier, Christoph said[1] that blk-mq assumes =
that
quoted
when a FLUSH is sent over one channel, and the reply comes in, that =
all
quoted
commands which have been received, regardless of which channel they =
were
quoted
received over, have reched disk.
=20
[1] Message-ID: [ref]
=20
It is impossible for nbd to make such a guarantee, due to =
head-of-line
quoted
blocking on TCP.
=20
=20
Huh I missed that.  Yeah that's not possible for us for sure, I think =
my option=20
idea is the less awful way forward if we want to address that =
limitation.  Thanks,

I think if the server supports flush (which you can tell), sending flush =
on
all channels is the only safe thing to do, without substantial protocol
changes (which I'm not sure how one would do given flush is in a sense
a synchronisation point). I think it's thus imperative this gets fixed
before the change gets merged.

--=20
Alex Bligh



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help