lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 15 Aug 2016 15:29:21 +0100
From:	Stefan Hajnoczi <>
To:	"Michael S. Tsirkin" <>
Subject: Re: [PATCH v2 1/1] VSOCK: remove more space available check filling
 TX vq

On Mon, Aug 15, 2016 at 02:16:51AM +0300, Michael S. Tsirkin wrote:
> On Wed, Aug 10, 2016 at 05:24:34PM +0200, wrote:
> > From: Gerard Garcia <>
> > 
> > Remove unnecessary use of enable/disable callback notifications
> > and the incorrect more space available check.
> > 
> > The virtio_transport_tx_work handles when the TX virtqueue
> > has more buffers available.
> > 
> > Signed-off-by: Gerard Garcia <>
> > Acked-by: Stefan Hajnoczi <>
> Generally enable/disable is a worthwhile optimization,
> but if Stefan wants to keep code simple for now,
> I don't have a problem with that.

Enabling/disabling callbacks is inappropriate in this function because
its job is *submitting* buffers rather than *reclaiming* completed
buffers.  Oops, I'm not sure how this mistake crept in :).

The callback suppression should only be done around the loop that
reclaims buffers.  Doing it in the wrong place leads to hangs if
interrupts are lost.


Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)

Powered by blists - more mailing lists