linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: Arnd Bergmann <arnd@arndb.de>
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: Re: [PATCHv3-resend] atomic: add *_dec_not_zero
Date: Fri, 17 Jun 2011 19:32:57 +0200	[thread overview]
Message-ID: <2834959.yriPZz3AFK@sven-desktop.home.narfation.org> (raw)
In-Reply-To: <201106171713.12983.arnd@arndb.de>

[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]

On Friday 17 June 2011 17:13:12 Arnd Bergmann wrote:
> 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.

Because some developers behind batman-adv and fault_inject thought that it is 
easier readable and David S. Miller said that it is a good idea to have 
something like it in atomic*.h

Other places were it can be used:
 * drivers/media/video/omap3isp/ispstat.c
 * drivers/s390/net/qeth_core_main.c
 * fs/ext4/ext4.h
 * fs/xfs/linux-2.6/xfs_buf.c
 * mm/memcontrol.c
 * net/core/drop_monitor.c
 * net/phonet/pep.c

> 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.

Don't feel pushed --- you can just say that you absolutely doesn't want it. I 
only tried to keep David happy, but don't want to start a fight over it.

thanks,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

Thread overview: 50+ 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-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  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  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:33   ` Mike Frysinger
     [not found] ` <1304458235-28473-1-git-send-email-sven-KaDOiPu9UxWEi8DpZVb4nw@public.gmane.org>
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: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-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 17:27 ` Will Deacon
2011-05-04 17:27   ` Will Deacon
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: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-18 19:49 ` [PATCHv2] " 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-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
2011-06-17 17:32         ` Sven Eckelmann [this message]
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=2834959.yriPZz3AFK@sven-desktop.home.narfation.org \
    --to=sven@narfation.org \
    --cc=arnd@arndb.de \
    --cc=fenghua.yu@intel.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).