Re: [PATCH] UDPCP Communication Protocol

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Friday, December 31, 2010 - 4:25 am

Le vendredi 31 décembre 2010 à 10:29 +0100, stefani@seibold.net a
écrit :

I am trying to understand what you are doing here.

It seems racy to me.

Apparently, what you want is to take a reference only if actual
sk_refcnt is not zero.

I suggest using atomic_inc_notzero(&state->sk->sk_refcnt) to avoid the
race in atomic_dec().



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] UDPCP Communication Protocol, stefani, (Fri Dec 31, 2:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:00 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:15 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:22 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:35 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:41 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 4:23 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:25 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:54 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:28 pm)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:40 pm)