Re: [PATCH 2/5] mm: slab allocation fairness

Christoph Lameter
2007-05-14T15:51:58Z

On Mon, 14 May 2007, Peter Zijlstra wrote:

> @@ -3182,13 +3192,13 @@ static inline void *____cache_alloc(stru
> check_irq_off();
>
> ac = cpu_cache_get(cachep);
> - if (likely(ac->avail)) {
> + if (likely(ac->avail) && !slab_insufficient_rank(cachep, rank)) {
> STATS_INC_ALLOCHIT(cachep);
> ac->touched = 1;

Hotpath modifications.