Re: [PATCH 4/6] net neighbour: convert to RCU
From: Martin Josefsson <hidden>
Date: 2006-08-29 18:34:09
Attachments
- signature.asc [application/pgp-signature] 189 bytes
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. Alexeyatomic_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