From: Joe Jin Subject: Re: [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support. Date: Fri, 7 Nov 2008 08:51:47 +0800 Message-ID: <20081107005147.GA9229@joejin-pc.cn.oracle.com> References: <20081106092916.GA21867@kernel.dk> <20081106110759.GC21867@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20081106110759.GC21867@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, Keir Fraser List-Id: xen-devel@lists.xenproject.org On 2008-11-06 12:07, Jens Axboe wrote: > On Thu, Nov 06 2008, Keir Fraser wrote: > > On 6/11/08 09:29, "Jens Axboe" wrote: > > > > >>> and be done with it. > > >> > > >> Yes, I can put together a patch for that easily enough, I think. > > > > > > Should be easy enough. Also be sure to defer any unplugging of the > > > device until the very end, to still make a lot of room for merging and > > > sorting. > > > > http://xenbits.xensource.com/staging/linux-2.6.18-xen.hg c/s 723 > > Looks fine, but you can also get rid of the fail_put_bio and check for > NULL return from bio_alloc(), since it'll never fail if you use > GFP_KERNEL as the allocation mask. That's why you cannot nest > allocations as well. > OK, will take a testing for this patch, thanks all. Joe