Cc: Hugh Dickins <hugh@...>, Peter Zijlstra <a.p.zijlstra@...>, Christoph Lameter <clameter@...>, James Bottomley <James.Bottomley@...>, Andrew Morton <akpm@...>, FUJITA Tomonori <fujita.tomonori@...>, Jens Axboe <jens.axboe@...>, Rafael J. Wysocki <rjw@...>, <linux-kernel@...>
Linus Torvalds wrote:
Aah, yes. I was thinking of kmalloc() here for which it works as
expected because kfree() will return the page to the proper cache. But
we can relax the rules of kmem_cache_free() a bit to make this work (but
perhaps add a WARN_ON() there if cache doesn't match page->slab).
Pekka
--