[openib-general] [PATCH] mthca: save low memory used for reserved objects

Roland Dreier rdreier at cisco.com
Thu Dec 14 07:58:06 PST 2006


 > We never need to allocate memory for reserved objects in low memory.

True, but...

 >  		table->icm[i] = mthca_alloc_icm(dev, chunk_size >> PAGE_SHIFT,
 > -						(use_lowmem ? GFP_KERNEL : GFP_HIGHUSER) |
 > -						__GFP_NOWARN);
 > +						 GFP_HIGHUSER | __GFP_NOWARN);

...it's quite not so simple, is it?  the chunk being allocated here
might not contain exclusively reserved objects -- it might have some
real objects too.




More information about the general mailing list