Thread (28 messages) 28 messages, 4 authors, 2012-08-31

Re: [PATCH -v12 02/15] resources: Add probe_resource()

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2012-08-28 17:05:59
Also in: linux-arch, lkml

On Tue, Aug 28, 2012 at 9:09 AM, Yinghai Lu [off-list ref] wrote:
please check update one. -v7
Ugh. Ok, looking closer at this, I think I agree with Bjorn. This is too ugly.

The whole "reduce size/needed_size by 1" double loop is O(n**2). And
it does ugly "insert fake resource to check, and then remove it". Ugh.

Maybe this works in practice for the special case of some PCI bus
numbers that are small integers, but the code is nasty nasty horrible
and not a generic resource allocation thing.

                Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help