Re: [PATCH 18/39] lmb: Add lmb_reserve_area_overlap_ok()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Monday, April 12, 2010 - 10:10 pm

On Mon, 2010-04-12 at 21:44 -0700, Yinghai wrote:


And ? From what I can see in the code, it will still not work properly
unless all your special cases end up fitting right with the bug you
effectively have..


Well, either we just have overlapped areas or we don't ... we shouldn't
have some kind of overlap_ok() thing that does the right thing ..
sometimes, but maybe not, but we don't care anyways, which is what you
seem to be saying.


Well, what you actually implemented is 

lmb_reserve_area_overlap_maybe_ok_not_too_sure_though()

What we should decide is once for all, is it ok to have lmb_reserve() be
called for overlapping ranges. I think the answer is yes and in fact, we
don't take special care in powerpc either there so overlap could happen
in theory.

Now, do we want to avoid actually creating overlapping regions in the
array ? I think we should look into it, but then we should fix
lmb_reserve() to do the right thing here and coalesce all the overlaps.

Cheers,
Ben.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 18/39] lmb: Add lmb_reserve_area_overlap_ok(), Yinghai Lu, (Thu Apr 8, 11:03 pm)
Re: [PATCH 18/39] lmb: Add lmb_reserve_area_overlap_ok(), Benjamin Herrenschmidt, (Mon Apr 12, 9:21 pm)
Re: [PATCH 18/39] lmb: Add lmb_reserve_area_overlap_ok(), Benjamin Herrenschmidt, (Mon Apr 12, 10:10 pm)