> 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/