Re: ARM/kirkwood: v3.12-rc6: kernel BUG at mm/util.c:390!

From: Ming Lei
Date: Mon Oct 28 2013 - 11:45:14 EST


On Mon, Oct 28, 2013 at 10:13 PM, Simon Baatz <gmbnomis@xxxxxxxxx> wrote:
> On Sun, Oct 27, 2013 at 07:51:15PM +0800, Ming Lei wrote:
>> diff --git a/lib/scatterlist.c b/lib/scatterlist.c
>> index a685c8a..eea8806 100644
>> --- a/lib/scatterlist.c
>> +++ b/lib/scatterlist.c
>> @@ -577,7 +577,7 @@ void sg_miter_stop(struct sg_mapping_iter *miter)
>> miter->__offset += miter->consumed;
>> miter->__remaining -= miter->consumed;
>>
>> - if (miter->__flags & SG_MITER_TO_SG)
>> + if ((miter->__flags & SG_MITER_TO_SG) && !PageSlab(page))
>
> This is what I was going to propose, but I would have used
> !PageSlab(miter->page) ;-)

OK, I will send a formal one later, thank you for pointing out the above, :-)

>
>> flush_kernel_dcache_page(miter->page);
>
> With this, a kernel with DEBUG_VM now boots on Kirkwood.



Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/