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: Christoph Lameter
Date: Tue Dec 13 2011 - 11:27:55 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.

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