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

[Xen-changelog] [xen-unstable] blktap2: only open driver stack once



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1257795648 0
# Node ID 1bc8ad17d29615dce0c155a7a5cbd8943526ad60
# Parent  94c3f3d4b864bf74801bffb384d7354142850709
blktap2: only open driver stack once

Currently blktap2 opens a driver stack, closes it, and re-opens
it. This causes problems with our remus driver: the primary may
connect to the backup in between the first and second open.

This is a temporary fix.

Signed-off-by: Ryan O'Connor <rjo@xxxxxxxxx>
---
 tools/blktap2/drivers/tapdisk-vbd.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 94c3f3d4b864 -r 1bc8ad17d296 tools/blktap2/drivers/tapdisk-vbd.c
--- a/tools/blktap2/drivers/tapdisk-vbd.c       Mon Nov 09 19:40:14 2009 +0000
+++ b/tools/blktap2/drivers/tapdisk-vbd.c       Mon Nov 09 19:40:48 2009 +0000
@@ -1560,9 +1560,11 @@ tapdisk_vbd_issue_request(td_vbd_t *vbd,
        gettimeofday(&vreq->last_try, NULL);
        tapdisk_vbd_move_request(vreq, &vbd->pending_requests);
 
+#if 0
        err = tapdisk_vbd_check_queue(vbd);
        if (err)
                goto fail;
+#endif
 
        err = tapdisk_image_check_ring_request(image, req);
        if (err)

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


 


Rackspace

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