Re: [PATCH][2.5] Single linked lists for Linux

Zwane Mwaikambo (zwane@linuxpower.ca)
Wed, 25 Sep 2002 20:25:45 -0400 (EDT)


On Thu, 26 Sep 2002, Peter Chubb wrote:

> This only works if head->next == entry otherwise you lose half your
> list. Also, none of this is SMP-safe.
>
> I think you need something like this (but with locking!)

Should you really be having locking in a primitive like that? That
shouldn't be taken care of at that level.

Zwane

-- 
function.linuxpower.ca

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/