lkml.org 
[lkml]   [1998]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.1.91 / skb_queue_lock: skb_peek() races?
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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.049 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site