This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] blktap2: only open driver stack once
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 09 Nov 2009 12:00:52 -0800
Delivery-date: Mon, 09 Nov 2009 12:01:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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;
        err = tapdisk_image_check_ring_request(image, req);
        if (err)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] blktap2: only open driver stack once, Xen patchbot-unstable <=