WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [TEST PATCH] xen/blkfront: use blk_rq_map_sg togener

To: Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [TEST PATCH] xen/blkfront: use blk_rq_map_sg togenerate ring entries
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Mon, 09 Feb 2009 09:35:47 -0800
Cc: Greg Harris <greg.harris@xxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jens Axboe <jens.axboe@xxxxxxxxxx>
Delivery-date: Mon, 09 Feb 2009 09:36:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49900AD1.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <11773622.8411271233953279537.JavaMail.root@ouachita> <498CA8C8.6050808@xxxxxxxx> <49900AD1.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Jan Beulich wrote:
But isn't this just reducing the likelihood of hitting the problem? Without
understanding why the entry limit gets exceeded (and fixing that), the
potential for this to happen again is still there.

I had the same thought, but Jens says it fixes the real problem, so that satisfies me ;)

Greg reported that simply decreasing the max segments to one less than the ring size was sufficient to clear up the symptoms, which indicates it was never submitting more than one extra segment. Jens writes:
The second problem is
that the block layer then appears to create one too many segments, but
from the dump it has rq->nr_phys_segments ==
BLKIF_MAX_SEGMENTS_PER_REQUEST. I suspect the latter is due to
xen-blkfront not handling the merging on its own. It should check that
the new page doesn't form part of the previous page.
which suggests that blkfront was omitting a merging check that driver should perform, results in this problem. I don't really understand why the upper layers can't do this merge check, but I'm sure Jens has a good reason.

Of course, the change made here has its own benefits, so I fully agree
it should be applied (though I wonder whether it's indeed a -stable
candidate).

Well, it appears to be the proper fix to a real bug observed in the field, which makes it an ideal -stable candidate.

   J

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

<Prev in Thread] Current Thread [Next in Thread>