aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-07-02 18:58:02 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-07-02 18:58:02 +0100
commit1b9cecdb88a18c2b5c173f04949577378d3d12b4 (patch)
treefebbf27466da535cd0e4c108cb987122cd91f5b3 /tools/blktap2
parentac9fb799479f3a6dc1fbb09482324d591452ce07 (diff)
downloadxen-1b9cecdb88a18c2b5c173f04949577378d3d12b4.tar.gz
xen-1b9cecdb88a18c2b5c173f04949577378d3d12b4.tar.bz2
xen-1b9cecdb88a18c2b5c173f04949577378d3d12b4.zip
blktap2: make protocol specific usage of shared sring explicit
I don't think protocol specific data really belongs in this header but since it is already there and we seem to be stuck with it let's at least make the users explicit lest people get caught out by future new fields moving the pad field around. This is the Xen portion of this change. The kernel portion will be sent separately. There is no dependency between the two. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Daniel Stodden <daniel.stodden@citrix.com> Cc: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'tools/blktap2')
-rw-r--r--tools/blktap2/drivers/tapdisk-vbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/blktap2/drivers/tapdisk-vbd.c b/tools/blktap2/drivers/tapdisk-vbd.c
index e6d18594ce..41425e2d83 100644
--- a/tools/blktap2/drivers/tapdisk-vbd.c
+++ b/tools/blktap2/drivers/tapdisk-vbd.c
@@ -1684,7 +1684,7 @@ tapdisk_vbd_check_ring_message(td_vbd_t *vbd)
if (!vbd->ring.sring)
return -EINVAL;
- switch (vbd->ring.sring->pad[0]) {
+ switch (vbd->ring.sring->private.tapif_user.msg) {
case 0:
return 0;