From: Keir Fraser Subject: Re: [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support. Date: Thu, 06 Nov 2008 09:26:32 +0000 Message-ID: References: <20081106085125.GZ21867@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081106085125.GZ21867@kernel.dk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jens Axboe Cc: Jeremy Fitzhardinge , Xen-devel@lists.xensource.com, kurt.hackel@oracle.com, shinya.narahara@oracle.com, Joe Jin , greg.marsden@oracle.com, wen.gang.wang@oracle.com List-Id: xen-devel@lists.xenproject.org On 6/11/08 08:51, "Jens Axboe" wrote: > I guess he needs that for waiting on them, but it really should just do: > > struct bio *bio = NULL; > > loop { > if (bio) { > submit_bio(bio, ...); > bio = NULL; > } > bio = bio_alloc(...); > ... > } > > if (bio) > submit_bio(bio, ...); > > and be done with it. Yes, I can put together a patch for that easily enough, I think. -- Keir