Re: [Slub allocator] There are chances that kmem_cache_cpu->freelistgets lost if the process happens to be rescheduled to a differenet cpu beforethe local_irq_save() completes in __slab_alloc()

From: Pekka Enberg
Date: Tue Dec 13 2011 - 15:12:14 EST


On Tue, 13 Dec 2011, Eric Dumazet wrote:
We can be interrupted and the IRQ handler can free an object an populate
freelist too. So the check must always be done.

On Tue, 13 Dec 2011, Christoph Lameter wrote:
True. So a small memory leak that remained undetected. Hmm.... Wonder how
one can create some diagnostics to allow detection of this in the future.

Acked-by: Christoph Lameter <cl@xxxxxxxxx>

I queued this for 3.3. Thanks guys!

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