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

From: Zwane Mwaikambo (zwane@linuxpower.ca)
Date: Wed Sep 25 2002 - 19:25:45 EST


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/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:24 EST