Thread (19 messages) 19 messages, 3 authors, 2006-08-30

Re: [PATCH 4/6] net neighbour: convert to RCU

From: Martin Josefsson <hidden>
Date: 2006-08-29 18:34:09

On Tue, 2006-08-29 at 11:22 -0700, Stephen Hemminger wrote:
quoted
Probably, you should do atomic_inc_and_test() here and restart lookup,
if it fails.

Alexey
atomic_inc_and_test is true iff result is zero, so that won't work.
Wouldn't atomic_inc_not_zero() do what you want?

-- 
/Martin

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help