All of lore.kernel.org
 help / color / mirror / Atom feed
* xs transaction
@ 2007-09-11  7:17 Tian, Kevin
  2007-09-11  7:31 ` Keir Fraser
  0 siblings, 1 reply; 7+ messages in thread
From: Tian, Kevin @ 2007-09-11  7:17 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-09-11 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11  7:17 xs transaction Tian, Kevin
2007-09-11  7:31 ` Keir Fraser
2007-09-11  7:34   ` Tian, Kevin
2007-09-11  7:42     ` Keir Fraser
2007-09-11  7:44       ` Tian, Kevin
2007-09-11 11:45         ` Vincent Hanquez
2007-09-11 12:30           ` Tian, Kevin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.