Re: [PATCH 3/3] atomic: generalize atomic_add_unless_return

From: Eric Dumazet
Date: Thu Jun 09 2011 - 14:01:46 EST


Le lundi 06 juin 2011 Ã 22:58 +0200, Eric Dumazet a Ãcrit :
> Le lundi 06 juin 2011 Ã 10:27 -0700, Arun Sharma a Ãcrit :
> > commit 686a7e3 added atomic_add_unless_return() to get something going
> > for the stable branch.
> >
> > Move the primitive to <linux/atomic.h>
> >
> > Signed-off-by: Arun Sharma <asharma@xxxxxx>
> > Cc: Ingo Molnar <mingo@xxxxxxx>
> > Cc: David Miller <davem@xxxxxxxxxxxxx>
> > Cc: Andrew Morton <akpm@xxxxxxxx>
> > Cc: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> > Cc: Mike Frysinger <vapier.adi@xxxxxxxxx>
> > LKML-Reference: <20110531105019.GF24172@xxxxxxx>
> > ---
> > include/linux/atomic.h | 15 +++++++++++++++
> > net/ipv4/inetpeer.c | 17 ++---------------
> > 2 files changed, 17 insertions(+), 15 deletions(-)
> >
> > diff --git a/include/linux/atomic.h b/include/linux/atomic.h
> > index fc31190..3489d9c 100644
> > --- a/include/linux/atomic.h
> > +++ b/include/linux/atomic.h
> > @@ -17,6 +17,21 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
> > }
>
> Reviewed-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
>

Hello Arun

Few hours ago was committed a patch in net-next-2.6, removing the need
for atomic_add_unless_return() in net/ipv4/inetpeer.c (so there no more
user in kernel at this moment for linux 3.1)


http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commit;h=4b9d9be839fdb7dcd7ce7619a623fd9015a50cda



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/