WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.

To: Joe Jin <joe.jin@xxxxxxxxxx>
Subject: Re: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 04 Nov 2008 08:13:54 +0000
Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx, kurt.hackel@xxxxxxxxxx, shinya.narahara@xxxxxxxxxx, greg.marsden@xxxxxxxxxx, wen.gang.wang@xxxxxxxxxx, jens.axboe@xxxxxxxxxx
Delivery-date: Tue, 04 Nov 2008 00:14:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081104080255.GA26209@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ack+VUbvhXJT2KpIEd2w9wAWy6hiGQ==
Thread-topic: [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.
User-agent: Microsoft-Entourage/11.4.0.080122
On 4/11/08 08:02, "Joe Jin" <joe.jin@xxxxxxxxxx> wrote:

>> 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.
>> 
> 
> Do you meant implement this feature just in domU (blkfront)?

Yes. If I understand what is being done.

> To direct-io answer is yes for request have marked if write request with
> O_DIRECT flag, but to O_SYNC, filesystem implentation it at filesystem,
> layer, I think do not touch filesystem codes to implement O_SYNC support
> is impossible.

O_DIRECT has no meaning really across the xenblk interface. The intention is
that blkback talks at a raw block device below the buffer cache anyway.

For O_SYNC it can be implemented by pushing out all I/Os into the ring
buffer and then wait for all required responses. Why do you think that
doesn't work? Indeed it should work already if such logic exists in the
generic Linux block layer, since blkfront notifies that layer as responses
come in from blkback.

> And, I think the changs related filesystem maybe hard to accepted by upsteam
> for this is a special issue just related xenblk.

But xenblk (blkfront at least) is upstream now.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>