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

Re: [Xen-devel] [PATCH] Segments can span multiple clusters withtap:qcow



On Thu, 2007-05-03 at 18:40 +0100, Keir Fraser wrote:
> On 3/5/07 02:06, "Jake Wires" <Jake.Wires@xxxxxxxxxxxxx> wrote:
> 
> > This patch is back to only allocating enough requests for one segment:
> > 
> > +        /* A segment (i.e. a page) can span multiple clusters */
> > +        s->max_aio_reqs = (getpagesize() / s->cluster_size) + 1;
> > 
> > In fact, this code allocates exactly two AIO requests for QCoW images
> > created by qcow-create, which have a default cluster size of 4K.
> 
> What shall we do -- revert the whole patch or fix this line?

        Goodness, words fail me. In all the confusion I created, that fix got
lost again. It should be:

+        s->max_aio_reqs = ((getpagesize() / s->cluster_size) + 1) * 
MAX_SEGMENTS_PER_REQ * MAX_REQUESTS;

Thanks,
Mark.


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


 


Rackspace

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