All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Sven Eckelmann <sven@narfation.org>
Cc: linux-arch@vger.kernel.org, Tony Luck <tony.luck@intel.com>,
	Fenghua Yu <fenghua.yu@intel.com>,
	linux-ia64@vger.kernel.org
Subject: Re: [PATCHv3-resend] atomic: add *_dec_not_zero
Date: Fri, 17 Jun 2011 17:13:12 +0200	[thread overview]
Message-ID: <201106171713.12983.arnd@arndb.de> (raw)
In-Reply-To: <1308307124-15659-1-git-send-email-sven@narfation.org>

On Friday 17 June 2011, Sven Eckelmann wrote:
> 
> Introduce an *_dec_not_zero operation.  Make this a special case of
> *_add_unless because batman-adv uses atomic_dec_not_zero in different
> places like re-broadcast queue or aggregation queue management. There
> are other non-final patches which may also want to use this macro.
> 
> Reported-by: David S. Miller <davem@davemloft.net>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com>
> Acked-by: David S. Miller <davem@davemloft.net>
> Acked-by: Ingo Molnar <mingo@elte.hu>
> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
> Acked-by: Ralf Baechle <ralf@linux-mips.org>
> Acked-by: David Howells <dhowells@redhat.com>
> Acked-by: Chris Metcalf <cmetcalf@tilera.com>
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Acked-by: Will Deacon <will.deacon@arm.com>
> Acked-by: Matt Turner <mattst88@gmail.com>
> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Acked-by: Paul Mundt <lethal@linux-sh.org>
> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> Acked-by: Hirokazu Takata <takata@linux-m32r.org>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Cc: linux-ia64@vger.kernel.org
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: linux-arch@vger.kernel.org
> ---
> Nothing changed - only added the Acked-by from Hirokazu Takata. That
> means that I am still waiting for ia64 and Arnd Bergmann (maybe he wants
> to merge it in his tree?).

Hmm, I didn't look at the first versions unfortunately. Remind me why we don't just
open-code the atomic_add_unless in batman-adv.

Since people apparently think that this patch is a good idea, I'll merge it in
the asm-generic tree once I understand why this is done.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Sven Eckelmann <sven@narfation.org>
Cc: linux-arch@vger.kernel.org, Tony Luck <tony.luck@intel.com>,
	Fenghua Yu <fenghua.yu@intel.com>,
	linux-ia64@vger.kernel.org
Subject: Re: [PATCHv3-resend] atomic: add *_dec_not_zero
Date: Fri, 17 Jun 2011 15:13:12 +0000	[thread overview]
Message-ID: <201106171713.12983.arnd@arndb.de> (raw)
In-Reply-To: <1308307124-15659-1-git-send-email-sven@narfation.org>

On Friday 17 June 2011, Sven Eckelmann wrote:
> 
> Introduce an *_dec_not_zero operation.  Make this a special case of
> *_add_unless because batman-adv uses atomic_dec_not_zero in different
> places like re-broadcast queue or aggregation queue management. There
> are other non-final patches which may also want to use this macro.
> 
> Reported-by: David S. Miller <davem@davemloft.net>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com>
> Acked-by: David S. Miller <davem@davemloft.net>
> Acked-by: Ingo Molnar <mingo@elte.hu>
> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
> Acked-by: Ralf Baechle <ralf@linux-mips.org>
> Acked-by: David Howells <dhowells@redhat.com>
> Acked-by: Chris Metcalf <cmetcalf@tilera.com>
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Acked-by: Will Deacon <will.deacon@arm.com>
> Acked-by: Matt Turner <mattst88@gmail.com>
> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Acked-by: Paul Mundt <lethal@linux-sh.org>
> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> Acked-by: Hirokazu Takata <takata@linux-m32r.org>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Cc: linux-ia64@vger.kernel.org
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: linux-arch@vger.kernel.org
> ---
> Nothing changed - only added the Acked-by from Hirokazu Takata. That
> means that I am still waiting for ia64 and Arnd Bergmann (maybe he wants
> to merge it in his tree?).

Hmm, I didn't look at the first versions unfortunately. Remind me why we don't just
open-code the atomic_add_unless in batman-adv.

Since people apparently think that this patch is a good idea, I'll merge it in
the asm-generic tree once I understand why this is done.

	Arnd

  reply	other threads:[~2011-06-17 15:13 UTC|newest]

Thread overview: 136+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 21:30 [PATCH] atomic: add *_dec_not_zero Sven Eckelmann
2011-05-03 21:30 ` Sven Eckelmann
2011-05-03 21:30 ` Sven Eckelmann
2011-05-03 21:30 ` Sven Eckelmann
2011-05-03 21:30 ` Sven Eckelmann
2011-05-04  4:44 ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04  4:44   ` Mike Frysinger
2011-05-04 15:04   ` James Bottomley
2011-05-04 15:04   ` James Bottomley
2011-05-04 15:04     ` James Bottomley
2011-05-04 15:04     ` James Bottomley
2011-05-04 15:04     ` James Bottomley
2011-05-04 15:04     ` James Bottomley
2011-05-04  4:44 ` Mike Frysinger
2011-05-04  6:12 ` David Miller
2011-05-04  6:12   ` David Miller
2011-05-04  6:12   ` David Miller
2011-05-04  6:12   ` David Miller
2011-05-04  6:12   ` David Miller
2011-05-04  7:03 ` Ingo Molnar
2011-05-04  7:03   ` Ingo Molnar
2011-05-04  7:03   ` Ingo Molnar
2011-05-04  7:03   ` Ingo Molnar
2011-05-04  7:03   ` Ingo Molnar
2011-05-04  8:05 ` David Laight
2011-05-04  8:05   ` David Laight
2011-05-04  8:05   ` David Laight
2011-05-04  8:05   ` David Laight
2011-05-04  8:05   ` David Laight
2011-05-04  8:05   ` David Laight
2011-05-04  8:21   ` Sven Eckelmann
2011-05-04  8:21   ` Sven Eckelmann
2011-05-04  8:21     ` Sven Eckelmann
2011-05-04  8:21     ` Sven Eckelmann
2011-05-04  8:21     ` Sven Eckelmann
2011-05-04  8:21     ` Sven Eckelmann
2011-05-04  8:33   ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33     ` Mike Frysinger
2011-05-04  8:33   ` Mike Frysinger
2011-05-04  8:05 ` David Laight
     [not found] ` <1304458235-28473-1-git-send-email-sven-KaDOiPu9UxWEi8DpZVb4nw@public.gmane.org>
2011-05-04 10:48   ` Jesper Nilsson
2011-05-04 10:48     ` Jesper Nilsson
2011-05-04 10:48     ` Jesper Nilsson
2011-05-04 10:48     ` Jesper Nilsson
2011-05-04 10:48     ` Jesper Nilsson
2011-05-04 11:02   ` Ralf Baechle
2011-05-04 11:02     ` Ralf Baechle
2011-05-04 11:02     ` Ralf Baechle
2011-05-04 11:02     ` Ralf Baechle
2011-05-04 11:02     ` Ralf Baechle
2011-05-04 11:53   ` David Howells
2011-05-04 11:53     ` David Howells
2011-05-04 11:53     ` David Howells
2011-05-04 11:53     ` David Howells
2011-05-04 11:53     ` David Howells
2011-05-08 22:15   ` Benjamin Herrenschmidt
2011-05-08 22:15     ` Benjamin Herrenschmidt
2011-05-08 22:15     ` Benjamin Herrenschmidt
2011-05-08 22:15     ` Benjamin Herrenschmidt
2011-05-08 22:15     ` Benjamin Herrenschmidt
2011-05-04 12:09 ` Chris Metcalf
2011-05-04 12:09   ` Chris Metcalf
2011-05-04 12:09   ` Chris Metcalf
2011-05-04 12:09   ` Chris Metcalf
2011-05-04 12:09   ` Chris Metcalf
2011-05-04 12:09   ` Chris Metcalf
2011-05-04 12:09 ` Chris Metcalf
2011-05-04 12:17 ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17   ` Geert Uytterhoeven
2011-05-04 12:17 ` Geert Uytterhoeven
2011-05-04 17:27 ` Will Deacon
2011-05-04 17:27   ` Will Deacon
2011-05-04 17:27   ` Will Deacon
2011-05-04 17:27   ` Will Deacon
2011-05-04 18:13 ` Matt Turner
2011-05-04 18:13 ` Matt Turner
2011-05-04 18:13   ` Matt Turner
2011-05-04 18:13   ` Matt Turner
2011-05-04 18:13   ` Matt Turner
2011-05-04 18:13   ` Matt Turner
2011-05-04 18:13   ` Matt Turner
2011-05-08  9:24 ` Russell King - ARM Linux
2011-05-08  9:24   ` Russell King - ARM Linux
2011-05-08  9:24   ` Russell King - ARM Linux
2011-05-08  9:24   ` Russell King - ARM Linux
2011-05-08  9:24   ` Russell King - ARM Linux
2011-05-08  9:33   ` Sven Eckelmann
2011-05-08  9:33   ` Sven Eckelmann
2011-05-08  9:33     ` Sven Eckelmann
2011-05-08  9:33     ` Sven Eckelmann
2011-05-08  9:33     ` Sven Eckelmann
2011-05-08  9:33     ` Sven Eckelmann
2011-05-09  2:38     ` Mike Frysinger
2011-05-09  2:38     ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-09  2:38       ` Mike Frysinger
2011-05-08  9:24 ` Russell King - ARM Linux
2011-05-18 19:49 ` [PATCHv2] " Sven Eckelmann
2011-05-18 19:49   ` Sven Eckelmann
2011-05-23  7:13   ` Paul Mundt
2011-05-23  7:13     ` Paul Mundt
2011-05-23  7:27   ` Heiko Carstens
2011-05-23  7:27     ` Heiko Carstens
2011-05-29  7:13   ` [PATCHv3] " Sven Eckelmann
2011-05-29  7:13     ` Sven Eckelmann
2011-06-02  5:44     ` Hirokazu Takata
2011-06-02  5:44       ` Hirokazu Takata
2011-06-17 10:38     ` [PATCHv3-resend] " Sven Eckelmann
2011-06-17 10:38       ` Sven Eckelmann
2011-06-17 15:13       ` Arnd Bergmann [this message]
2011-06-17 15:13         ` Arnd Bergmann
2011-06-17 17:32         ` Sven Eckelmann
2011-06-17 17:32           ` Sven Eckelmann
2011-06-17 21:20           ` Arnd Bergmann
2011-06-17 21:20             ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201106171713.12983.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=fenghua.yu@intel.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=sven@narfation.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.