aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_core.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-10 15:38:01 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-10 15:38:01 +0100
commitbddd41366dca057dfbd5204193931f78dbd686a6 (patch)
tree38f078024a96ca8510ad90ff137966878dd05197 /tools/xenstore/xenstored_core.h
parent5910d2c4608435ea13a95f2955496a0cdb8d97a9 (diff)
downloadxen-bddd41366dca057dfbd5204193931f78dbd686a6.tar.gz
xen-bddd41366dca057dfbd5204193931f78dbd686a6.tar.bz2
xen-bddd41366dca057dfbd5204193931f78dbd686a6.zip
xenstored now supports multiple concurrent transactions per
connection, plus interleaving of transactional and non-transactional accesses. A transaction identifier is added to the xsd_sockmsg header structure (0 means 'not in context of a transaction'). The user and kernel xs interfaces accept a pointer to a transaction handle where appropriate -- currently this is directly cast to an integer identifier in the client library / kernel driver, but will allow for keeping extra dynamic client-side state in future if we need to. The transaction mutex has now gone. It's replaced with a read-write mutex, but this is only acquired for exclusive access during suspend/resume, to ensure there are no in-progress transactions. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/xenstored_core.h')
-rw-r--r--tools/xenstore/xenstored_core.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_core.h b/tools/xenstore/xenstored_core.h
index c50936f1bc..600e95a6f8 100644
--- a/tools/xenstore/xenstored_core.h
+++ b/tools/xenstore/xenstored_core.h
@@ -71,9 +71,13 @@ struct connection
/* Buffered output data */
struct list_head out_list;
- /* My transaction, if any. */
+ /* Transaction context for current request (NULL if none). */
struct transaction *transaction;
+ /* List of in-progress transactions. */
+ struct list_head transaction_list;
+ u32 next_transaction_id;
+
/* The domain I'm associated with, if any. */
struct domain *domain;