Re: [PATCH] xen-blkfront: drop the use of llist_for_each_entry_safe

From: Konrad Rzeszutek Wilk
Date: Wed Feb 13 2013 - 15:19:52 EST


On Wed, Feb 13, 2013 at 12:33:12PM -0500, Konrad Rzeszutek Wilk wrote:
> On Mon, Feb 11, 2013 at 05:10:58PM +0100, Roger Pau Monne wrote:
> > Replace llist_for_each_entry_safe with a while loop and
> > llist_del_first.
> >
> > llist_for_each_entry_safe can trigger a bug in GCC 4.1, so it's best
> > to remove it and use a while loop and llist_del_first (which is
> > already in llist.h).
>
> I spruced this up a bit:

And then I re-tested it once more and it did _not_ fix the problem. But this
did fix it: