[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0906021103490.23962@gentwo.org>
Date: Tue, 2 Jun 2009 11:05:09 -0400 (EDT)
From: Christoph Lameter <cl@...ux-foundation.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
cc: Alan Cox <alan@...rguk.ukuu.org.uk>,
Pekka Enberg <penberg@...helsinki.fi>,
"Larry H." <research@...reption.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, Rik van Riel <riel@...hat.com>
Subject: Re: [PATCH] Use kzfree in tty buffer management to enforce data
sanitization
On Sun, 31 May 2009, Linus Torvalds wrote:
> I suspect the "use page allocator" is historical - ie the tty layer
> originally always did that, and then when people wanted to suppotr smaller
> areas than one page, they added the special case. I have this dim memory
> of the _original_ kmalloc not handling page-sized allocations well (due to
> embedded size/pointer overheads), but I think all current allocators are
> perfectly happy to allocate PAGE_SIZE buffers without slop.
>
> If I'm right, then we could just use kmalloc/kfree unconditionally. Pekka?
Yes. They do that in various ways. SLOB/SLUB will fall back to the
page allocator for large allocation sizes.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists