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

xen-devel

[Top] [All Lists]

RE: [Xen-devel] xs transaction

To: "Vincent Hanquez" <vincent@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] xs transaction
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: 2007年9月11日 20:30:14 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年9月11日 05:30:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070911114524.GA18631@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <D470B4E54465E3469E2ABBC5AFAC390F013B223B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C30C057A.D65D%Keir.Fraser@xxxxxxxxxxxx> <D470B4E54465E3469E2ABBC5AFAC390F013B223C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20070911114524.GA18631@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acf0aUFiT4qOzfIQSQCZOYLXmeBbPQABbRcg
Thread-topic: [Xen-devel] xs transaction
>From: Vincent Hanquez [mailto:vincent@xxxxxxxxxxxxx]
>Sent: 2007年9月11日 19:45
>
>xenstored is single threaded and the libxs accesses are serialed through
>a mutex which prevent two threads to access the ring at the same time.
>if it was not, you'ld have much more problems than having two
>transactions at the same time.
>
>xenstored will always complete a process_message function until it try
>to read a new packet. at this point the conn->transaction is back to
>NULL.
Thanks, and I see the point now.
>
>> Since we're sure that current implementation doesn't handle parallel
>> transactions (though API level allows), I think do_transaction_start
>> should check conn->transaction_list instead of conn->transaction to
>> ensure it.
>
>how are you sure it doesn't handle parallel transactions ?
My fault actually and it does handle. If multiple transactions are in 
parallel, 1st end will update its changes into global tdb with the rest 
failed (EAGAIN) to caller for retry. :-)
Thanks,
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] xs transaction , Vincent Hanquez
Next by Date: Re: [Xen-devel] [VTD-NEO][patch 0/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough , Keir Fraser
Previous by Thread: Re: [Xen-devel] xs transaction , Vincent Hanquez
Next by Thread: [Xen-devel] 3ware 9650 and Xen 3.1 , Shaun R.
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /