Re: [RFC PATCH v1 1/2] list: add type-safer list_head wrapper

From: Linus Torvalds
Date: Fri Mar 11 2022 - 18:46:14 EST


On Fri, Mar 11, 2022 at 2:15 PM Barnabás Pőcze <pobrn@xxxxxxxxxxxxxx> wrote:
>
> So, sorry to be this obtuse, but I gather the proposed interface
> is a no-go in all ways, shapes, and forms in your eyes?

Yeah, not with the limitation that it only works on global list heads.
We already have a lot of different list traversal things (rcu, safe,
hlist, continue-in-the-middle etc etc), and we clearly are going to
add a new set - but I don't want to add one that is so limited that it
only works for the simplest kind of list.

Linus