Re: No locking is needed ... why?

From: Rik van Riel (
Date: Tue Oct 09 2001 - 08:37:56 EST

On Tue, 9 Oct 2001, Kirill Ratkin wrote:

> Could somebody explain me this comment?:
> /*
> * Incoming packets are placed on per-cpu queues so that
> * no locking is needed.
> */

> I didn't understand why packets are placed so and why
> locking isn't needed?

Each CPU has its own data structure here. This means no
other CPU will touch this queue (they have their own)
so there is nobody we could ever race against.



DMCA, SSSCA, W3C?  Who cares?  (volunteers needed)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:24 EST