All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Jan Beulich <jbeulich@novell.com>
Cc: Greg Harris <greg.harris@metacarta.com>,
	Xen-devel <xen-devel@lists.xensource.com>,
	Jens Axboe <jens.axboe@oracle.com>
Subject: Re: Re: [TEST PATCH] xen/blkfront: use blk_rq_map_sg togenerate ring entries
Date: Mon, 09 Feb 2009 09:35:47 -0800	[thread overview]
Message-ID: <49906973.3030309@goop.org> (raw)
In-Reply-To: <49900AD1.76E4.0078.0@novell.com>

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

      reply	other threads:[~2009-02-09 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <13313891.8411201233953050380.JavaMail.root@ouachita>
2009-02-06 20:47 ` [TEST PATCH] xen/blkfront: use blk_rq_map_sg to generate ring entries Greg Harris
2009-02-06 21:16   ` Jeremy Fitzhardinge
2009-02-09  9:52     ` [TEST PATCH] xen/blkfront: use blk_rq_map_sg togenerate " Jan Beulich
2009-02-09 17:35       ` Jeremy Fitzhardinge [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49906973.3030309@goop.org \
    --to=jeremy@goop.org \
    --cc=greg.harris@metacarta.com \
    --cc=jbeulich@novell.com \
    --cc=jens.axboe@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.