Thread (44 messages) 44 messages, 6 authors, 2021-08-06

Re: [PATCH v1] driver: base: Add driver filter support

flat view

From: Andi Kleen <hidden>
Date: 2021-08-04 19:27:58
Also in: lkml

On 8/4/2021 11:29 AM, Kuppuswamy, Sathyanarayanan wrote:

On 8/4/21 11:08 AM, Matthew Wilcox wrote:
quoted
Why use a doubly-linked-list here?  An allocating xarray should perform
much better and use less memory.
We don't expect the list to be too long. So we may not gain any significant
advantage in terms of performance or memory when using alternate lists. Since
linked list easier to use, we chose it.
Also even if it was long it wouldn't matter because this isn't a fast path at all.

All that matters it to write the code as clearly as possible.

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