From: Brendan Cully Subject: [PATCH 09 of 11] blktap2: only open driver stack once Date: Thu, 05 Nov 2009 14:58:34 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: andy@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Ryan O'Connor # Date 1252530408 25200 # Node ID b14bb76b36dd239586b41c47e6f2531cbcbf4b47 # Parent 4ca00ee41ce9731b8725c736b27c841b484dce5d 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 diff --git a/tools/blktap2/drivers/tapdisk-vbd.c b/tools/blktap2/drivers/tapdisk-vbd.c --- a/tools/blktap2/drivers/tapdisk-vbd.c +++ b/tools/blktap2/drivers/tapdisk-vbd.c @@ -1561,9 +1561,11 @@ 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)