Re: [PATCH tip:x86/urgent] x86, NUMA: Fix empty memblk detection innuma_cleanup_meminfo()

From: Ingo Molnar
Date: Sun May 01 2011 - 12:54:14 EST



* Tejun Heo <tj@xxxxxxxxxx> wrote:

> From: Yinghai Lu <yinghai@xxxxxxxxxx>
>
> numa_cleanup_meminfo() trims each memblk between low (0) and high
> (max_pfn) limits and discards empty ones. However, the emptiness
> detection incorrectly used equality test. If the start of a memblk is
> higher than max_pfn, it is empty but fails the equality test and
> doesn't get discarded.
>
> Fix it by using >= instead of ==.
>
> tj: Extracted the actual fix from the original patch and rewrote patch
> description.

Well, the bit still missing from the description is why this fix matters for
x86/urgent: under what scenarios does this cause problems, how frequent is it,
how severe are the prolems, etc. etc. Would be nice to have something about
that in the changelog as well.

Thanks,

Ingo
--
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/