From: Keir Fraser Subject: Re: [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support. Date: Tue, 04 Nov 2008 07:24:32 +0000 Message-ID: References: <20081104025055.GA18236@joejin-pc.cn.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081104025055.GA18236@joejin-pc.cn.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joe Jin , Xen-devel@lists.xensource.com Cc: jens.axboe@oracle.com, kurt.hackel@oracle.com, shinya.narahara@oracle.com, greg.marsden@oracle.com, wen.gang.wang@oracle.com List-Id: xen-devel@lists.xenproject.org On 4/11/08 02:50, "Joe Jin" wrote: > Resend. I never saw this patchset before! > [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support. > > This patchset to add O_DIRECT and O_SYNC support to xenblk driver. > > At present xenblk driver, a ring buffer have introduced in backend and > frontend, the cache got better for io performance. But at some conditions, > data need write date to disk as soon as possible, this ring buffer made > data could not sync to disk immediately, even open file with O_DIRECT or > O_SYNC flag. Obviously some potential risks at os for IO operation, > so sync data to disk asap which the file open with O_DIRECT/O_SYNC > is meaningful for xenblk driver. > > Please review and welcome comment. How is this better than waiting in the domU (blkfront) domain to collect the required asynchronous responses? Scattering changes into Linux filesystems is a dead end unless you can get the changes accepted upstream via lkml. -- Keir