2.1.91 / skb_queue_lock: skb_peek() races?

Henner Eisen (eis@baty.hanse.de)
Mon, 30 Mar 1998 02:37:29 +0200


Hi,

2.1.91 now uses a spinlock for protecting skb queue operations.
I noticed that there are some pieces of code that do somethink like

save_flags(flags);
cli();

:

skb = skb_peek(&queue);

:

do_something(skb);

:

restore_flags(flags);

According to Documenttaion/spinlocks.txt, the cli() now no longer protects
against simultanous skb list manipulations (which are serialized by spinlocks).

Im I right?

Henner

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu