Re: [Nbd] Proposal to merge WRITE_ZEROES extension into master
- To: Alex Bligh <alex@...872...>
- Cc: "nbd-general@lists.sourceforge.net" <nbd-general@lists.sourceforge.net>
- Subject: Re: [Nbd] Proposal to merge WRITE_ZEROES extension into master
- From: Wouter Verhelst <w@...112...>
- Date: Tue, 20 Dec 2016 12:00:47 +0100
- Message-id: <20161220110047.zypmbqzllesf3p6i@...3...>
- In-reply-to: <6C4590FF-C978-4CD3-B8AC-8C9A7729B06F@...872...>
- References: <75E8140C-3000-4500-89A4-71A26040ADE4@...872...> <0132c6df-dbcf-b55a-6b56-f3279c825f1a@...696...> <4888CDE5-8CAD-4F0F-ABBC-6C904EC96ED0@...872...> <71fc32d7-2e5b-28c8-ec45-893daf5710d7@...696...> <FE824089-E29F-4894-B9CC-6A3CBC421CD6@...872...> <20161215110942.6xepfmak53kgr4wc@...3...> <20161219214143.jhgno7krc7fpgmjy@...3...> <c085204a-0db4-fa6a-4c39-cbb98ab3a0d9@...696...> <20161220082518.v27kqq63csmqhv4m@...3...> <6C4590FF-C978-4CD3-B8AC-8C9A7729B06F@...872...>
On Tue, Dec 20, 2016 at 09:20:58AM +0000, Alex Bligh wrote:
> > On 20 Dec 2016, at 08:25, Wouter Verhelst <w@...112...> wrote:
> >
> > diff --git a/nbd-server.c b/nbd-server.c
> > index cbe7e57..45cb591 100644
> > --- a/nbd-server.c
> > +++ b/nbd-server.c
> > @@ -2025,7 +2025,7 @@ static void handle_write_zeroes(CLIENT* client, struct nbd_request* req) {
> > // TODO: handle this far more efficiently with reference to the
> > // actual backing driver
> > pthread_mutex_lock(&(client->lock));
> > - writeit(client->net, &rep, sizeof rep);
> > + socket_write(client, &rep, sizeof rep);
> > pthread_mutex_unlock(&(client->lock));
> > }
> >
> > I'm going to have to do a 3.15.1 for that, otherwise WRITE_ZEROES
> > handling will be broken with TLS enabled.
>
> Sorry, that was me I think (possibly or possibly not in addition
> to Eric). Must have come from a merge error / thinko.
Yeah, no worries. I'll take care of it.
--
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
people in the world who think they really understand all of its rules,
and pretty much all of them are just lying to themselves too.
-- #debian-devel, OFTC, 2016-02-12
Reply to: