From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSl2a-000488-DG for qemu-devel@nongnu.org; Wed, 26 Mar 2014 06:26:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSl2U-0006RS-CH for qemu-devel@nongnu.org; Wed, 26 Mar 2014 06:26:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSl2U-0006RO-4Y for qemu-devel@nongnu.org; Wed, 26 Mar 2014 06:26:30 -0400 Message-ID: <5332AB4D.1090200@redhat.com> Date: Wed, 26 Mar 2014 11:26:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1395799358-16499-1-git-send-email-zhen-hual@hp.com> <5332A419.1090700@redhat.com> <5332A50B.7000105@hp.com> In-Reply-To: <5332A50B.7000105@hp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] virtio-blk: Use a req pool instead of malloc/free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Li, ZhenHua" , Stefan Hajnoczi Cc: qemu-devel@nongnu.org Il 26/03/2014 10:59, Li, ZhenHua ha scritto: > Sorry I am confused . > > There are two ways now: > 1. Just use g_slice_new to replace malloc/free. > 2. Use a pool as a replacement of frequently create/destroy reqs. And > when create the pool, use g_slice_new. > > Which are you meaning? I think both I and Stefan mean (1). Paolo