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

[Xen-changelog] [xen-unstable] blktap: Fix qcow max_aio_reqs calculation.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1178216747 -3600
# Node ID 3a5722420de74aafbe3e11e0faad501c7babe3e4
# Parent  623a07dda15cd5ef4aae403ad18a9ecc9bda8ec6
blktap: Fix qcow max_aio_reqs calculation.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/blktap/drivers/block-qcow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 623a07dda15c -r 3a5722420de7 tools/blktap/drivers/block-qcow.c
--- a/tools/blktap/drivers/block-qcow.c Thu May 03 15:39:45 2007 +0100
+++ b/tools/blktap/drivers/block-qcow.c Thu May 03 19:25:47 2007 +0100
@@ -199,7 +199,8 @@ static int init_aio_state(struct disk_dr
        }
 
         /* A segment (i.e. a page) can span multiple clusters */
-        s->max_aio_reqs = (getpagesize() / s->cluster_size) + 1;
+        s->max_aio_reqs = ((getpagesize() / s->cluster_size) + 1) *
+            MAX_SEGMENTS_PER_REQ * MAX_REQUESTS;
 
         /* Initialize AIO */
         s->iocb_free_count = s->max_aio_reqs;

_______________________________________________
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®.