From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [RFC 2/2] virtio-ring: Allocate indirect buffers from cache when possible Date: Tue, 28 Aug 2012 14:54:07 +0200 Message-ID: <503CBF6F.1030406@gmail.com> References: <1340028598-10142-1-git-send-email-levinsasha928@gmail.com> <1340028598-10142-2-git-send-email-levinsasha928@gmail.com> <4FE01355.6070909@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, mst@redhat.com To: Jean-Mickael Guerin Return-path: In-Reply-To: <4FE01355.6070909@6wind.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org List-Id: kvm.vger.kernel.org On 06/19/2012 07:51 AM, Jean-Mickael Guerin wrote: >> + if (vq->vring.desc[i].flags& VRING_DESC_F_INDIRECT) { >> + if (vq->vring.desc[i].len< vq->indirect_alloc_thresh) > This should be > instead of <, no? It should, yeah. Too bad slub doesn't yell at you for doing that.