[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] xs transaction


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Tue, 11 Sep 2007 15:17:55 +0800
  • Delivery-date: Tue, 11 Sep 2007 00:18:32 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acf0Q9+kPHP1cHSpSZSDVBFVO42XRA==
  • Thread-topic: xs transaction

Seems currently xenstore transaction provides confusing message 
in different places:

a) comment of xs_transaction_start says "You can only have one 
transaction at any time." However do_transaction_start allows up to 
10 transactions created, as long as all other existing transaction 
channel is idle at the time (conn->transaction == NULL)

b) when multiple transactions can be created, xenstore is not ready 
to handle traffic in parallel. Only one conn->transaction exists 

c) do_transaction_start says "/* We don't support nested transactions. 
*/" by checking conn->transaction, but it can't handle nest case. 
Conn->transaction only indicates whether traffic is on-going in other 
transaction, instead of whether other transactions are created. Instead 
conn->transaction_list should be checked for the purpose.

So what's expected usage for current xs transaction? Should xenstore 
add check on parallel/nest case, or depend on caller to avoid?

Thanks,
Kevin

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.