From: Andrew Morton <akpm@linux-foundation.org>
To: torbenh <torbenh@gmx.de>
Cc: xen-devel@lists.xensource.com,
Kees Cook <kees.cook@canonical.com>,
linux-fbdev@vger.kernel.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
James Hogan <james@albanarts.com>,
David Airlie <airlied@linux.ie>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
James Morris <jmorris@namei.org>,
Grant Likely <grant.likely@secretlab.ca>,
Paul Mackerras <paulus@samba.org>,
linux-parisc@vger.kernel.org, Magnus Damm <damm@opensource.se>,
Jiri Slaby <jslaby@suse.cz>,
Dan Williams <dan.j.williams@intel.com>,
devel@driverdev.osuosl.org, Guy Martin <gmsoft@tuxicoman.be>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>Russell King
<l>
Subject: Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()
Date: Thu, 20 Jan 2011 12:35:07 -0800 [thread overview]
Message-ID: <20110120123507.ac89c034.akpm@linux-foundation.org> (raw)
In-Reply-To: <20110120165502.GA10832@siel.b>
On Thu, 20 Jan 2011 17:55:02 +0100
torbenh <torbenh@gmx.de> wrote:
> On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote:
> > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote:
> > > the -rt patches change the console_semaphore to console_mutex.
> > > so a quite large chunk of the patches changes all
> > > acquire/release_console_sem() to acquire/release_console_mutex()
> >
> > Why not just change the functionality of the existing function to be a
> > mutex in the rt patches, instead of having to rename it everywhere?
>
> i hope that Thomas already did this in his upcoming -rt series.
>
> >
> > > this commit makes things use more neutral function names
> > > which dont make implications about the underlying lock.
> > >
> > > the only real change is the return value of console_trylock
> > > which is inverted from try_acquire_console_sem()
> > >
> > > Signed-off-by: Torben Hohn <torbenh@gmx.de>
> > > CC: Thomas Gleixner <tglx@tglx.de>
> >
> > I don't mind this rename, but is it really going to help anything out?
> > What's the odds of the -rt portion of this patch ever making it to
> > mainline?
>
> the -rt portion only changes the semaphore to a mutex.
> since the console_sem is used with mutex semantics, i dont see any
> reason, not to merge that portion too.
>
> i am just trying to shrink the -rt patch to make it more maintanable :)
>
Yeah, I think it's a better name and if we can indeed switch that
semaphore to a mutex then that's a good thing to do.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: torbenh <torbenh@gmx.de>
Cc: xen-devel@lists.xensource.com,
Kees Cook <kees.cook@canonical.com>,
linux-fbdev@vger.kernel.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
James Hogan <james@albanarts.com>,
David Airlie <airlied@linux.ie>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
James Morris <jmorris@namei.org>,
Grant Likely <grant.likely@secretlab.ca>,
Paul Mackerras <paulus@samba.org>,
linux-parisc@vger.kernel.org, Magnus Damm <damm@opensource.se>,
Jiri Slaby <jslaby@suse.cz>,
Dan Williams <dan.j.williams@intel.com>,
devel@driverdev.osuosl.org, Guy Martin <gmsoft@tuxicoman.be>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>,
Russell King <l
Subject: Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()
Date: Thu, 20 Jan 2011 12:35:07 -0800 [thread overview]
Message-ID: <20110120123507.ac89c034.akpm@linux-foundation.org> (raw)
In-Reply-To: <20110120165502.GA10832@siel.b>
On Thu, 20 Jan 2011 17:55:02 +0100
torbenh <torbenh@gmx.de> wrote:
> On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote:
> > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote:
> > > the -rt patches change the console_semaphore to console_mutex.
> > > so a quite large chunk of the patches changes all
> > > acquire/release_console_sem() to acquire/release_console_mutex()
> >
> > Why not just change the functionality of the existing function to be a
> > mutex in the rt patches, instead of having to rename it everywhere?
>
> i hope that Thomas already did this in his upcoming -rt series.
>
> >
> > > this commit makes things use more neutral function names
> > > which dont make implications about the underlying lock.
> > >
> > > the only real change is the return value of console_trylock
> > > which is inverted from try_acquire_console_sem()
> > >
> > > Signed-off-by: Torben Hohn <torbenh@gmx.de>
> > > CC: Thomas Gleixner <tglx@tglx.de>
> >
> > I don't mind this rename, but is it really going to help anything out?
> > What's the odds of the -rt portion of this patch ever making it to
> > mainline?
>
> the -rt portion only changes the semaphore to a mutex.
> since the console_sem is used with mutex semantics, i dont see any
> reason, not to merge that portion too.
>
> i am just trying to shrink the -rt patch to make it more maintanable :)
>
Yeah, I think it's a better name and if we can indeed switch that
semaphore to a mutex then that's a good thing to do.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: torbenh <torbenh@gmx.de>
Cc: xen-devel@lists.xensource.com,
"Kees Cook" <kees.cook@canonical.com>,
linux-fbdev@vger.kernel.org,
"Mark Brown" <broonie@opensource.wolfsonmicro.com>,
"James Hogan" <james@albanarts.com>,
"David Airlie" <airlied@linux.ie>,
"Jesse Barnes" <jbarnes@virtuousgeek.org>,
"James Morris" <jmorris@namei.org>,
"Paul Mackerras" <paulus@samba.org>,
linux-parisc@vger.kernel.org, "Magnus Damm" <damm@opensource.se>,
"Jiri Slaby" <jslaby@suse.cz>,
"Dan Williams" <dan.j.williams@intel.com>,
devel@driverdev.osuosl.org, "Guy Martin" <gmsoft@tuxicoman.be>,
"Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
"Jeremy Fitzhardinge" <jeremy.fitzhardinge@citrix.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Thomas Gleixner" <tglx@tglx.de>,
"Wu Zhangjin" <wuzhangjin@gmail.com>,
"Florian Tobias Schandinat" <FlorianSchandinat@gmx.de>,
"Lionel Debroux" <lionel_debroux@yahoo.fr>,
"Helge Deller" <deller@gmx.de>,
"Kay Sievers" <kay.sievers@vrfy.org>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
"Kevin Hilman" <khilman@deeprootsystems.com>,
"Tony Lindgren" <tony@atomide.com>,
cbe-oss-dev@lists.ozlabs.org, "Ben Skeggs" <bskeggs@redhat.com>,
"Ingo Molnar" <mingo@elte.hu>,
"Daniel Vetter" <daniel.vetter@ffwll.ch>,
"Dave Airlie" <airlied@redhat.com>,
"David Brown" <davidb@codeaurora.org>,
"Francisco Jerez" <currojerez@riseup.net>,
virtualization@lists.linux-foundation.org,
"Namhyung Kim" <namhyung@gmail.com>,
"Marcin Slusarz" <marcin.slusarz@gmail.com>,
"Alberto Panizzo" <maramaopercheseimorto@gmail.com>,
"Rusty Russell" <rusty@rustcorp.com.au>,
"Ondrej Zary" <linux@rainbow-software.org>,
"Denys Vlasenko" <vda.linux@googlemail.com>,
"Antonino Daplas" <adaplas@gmail.com>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"Abhijeet Dharmapurikar" <adharmap@codeaurora.org>,
"Andres Salomon" <dilinger@queued.net>,
"Werner Fink" <werner@suse.de>,
"Phil Edworthy" <phil.edworthy@renesas.com>,
linux-geode@lists.infradead.org,
"Alex Deucher" <alexdeucher@gmail.com>,
"Jerome Glisse" <jglisse@redhat.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Alexey Dobriyan" <adobriyan@gmail.com>,
"Daniel Mack" <daniel@caiaq.de>,
"Nicolas Pitre" <nicolas.pitre@canonical.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
linux-omap@vger.kernel.org,
"Ondrej Zajicek" <santiago@crfreenet.org>,
linux-arm-kernel@lists.infradead.org,
"Liam Girdwood" <lrg@slimlogic.co.uk>,
"Daniel Walker" <dwalker@codeaurora.org>,
"Linus Walleij" <linus.walleij@stericsson.com>,
"Caglar Akyuz" <caglar@bilkon-kontrol.com.tr>,
"Geoff Levand" <geoff@infradead.org>,
"Jiri Kosina" <jkosina@suse.cz>,
dri-devel@lists.freedesktop.org, "Greg KH" <gregkh@suse.de>,
linux-kernel@vger.kernel.org,
"Ralf Baechle" <ralf@linux-mips.org>,
"Guennadi Liakhovetski" <g.liakhovetski@gmx.de>,
"Kyle McMartin" <kyle@mcmartin.ca>,
"Jean Delvare" <khali@linux-fr.org>,
"Paul Mundt" <lethal@linux-sh.org>,
"Arnd Bergmann" <arnd@arndb.de>, "Takashi Iwai" <tiwai@suse.de>,
"Jason Wessel" <jason.wessel@windriver.com>,
"Tejun Heo" <tj@kernel.org>, "Julia Lawall" <julia@diku.dk>,
linuxppc-dev@lists.ozlabs.org,
"David S. Miller" <davem@davemloft.net>,
"Marcin Kościelnicki" <koriakin@0x04.net>
Subject: Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()
Date: Thu, 20 Jan 2011 12:35:07 -0800 [thread overview]
Message-ID: <20110120123507.ac89c034.akpm@linux-foundation.org> (raw)
In-Reply-To: <20110120165502.GA10832@siel.b>
On Thu, 20 Jan 2011 17:55:02 +0100
torbenh <torbenh@gmx.de> wrote:
> On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote:
> > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote:
> > > the -rt patches change the console_semaphore to console_mutex.
> > > so a quite large chunk of the patches changes all
> > > acquire/release_console_sem() to acquire/release_console_mutex()
> >
> > Why not just change the functionality of the existing function to be a
> > mutex in the rt patches, instead of having to rename it everywhere?
>
> i hope that Thomas already did this in his upcoming -rt series.
>
> >
> > > this commit makes things use more neutral function names
> > > which dont make implications about the underlying lock.
> > >
> > > the only real change is the return value of console_trylock
> > > which is inverted from try_acquire_console_sem()
> > >
> > > Signed-off-by: Torben Hohn <torbenh@gmx.de>
> > > CC: Thomas Gleixner <tglx@tglx.de>
> >
> > I don't mind this rename, but is it really going to help anything out?
> > What's the odds of the -rt portion of this patch ever making it to
> > mainline?
>
> the -rt portion only changes the semaphore to a mutex.
> since the console_sem is used with mutex semantics, i dont see any
> reason, not to merge that portion too.
>
> i am just trying to shrink the -rt patch to make it more maintanable :)
>
Yeah, I think it's a better name and if we can indeed switch that
semaphore to a mutex then that's a good thing to do.
WARNING: multiple messages have this Message-ID (diff)
From: akpm@linux-foundation.org (Andrew Morton)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] change acquire/release_console_sem() to console_lock/unlock()
Date: Thu, 20 Jan 2011 12:35:07 -0800 [thread overview]
Message-ID: <20110120123507.ac89c034.akpm@linux-foundation.org> (raw)
In-Reply-To: <20110120165502.GA10832@siel.b>
On Thu, 20 Jan 2011 17:55:02 +0100
torbenh <torbenh@gmx.de> wrote:
> On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote:
> > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote:
> > > the -rt patches change the console_semaphore to console_mutex.
> > > so a quite large chunk of the patches changes all
> > > acquire/release_console_sem() to acquire/release_console_mutex()
> >
> > Why not just change the functionality of the existing function to be a
> > mutex in the rt patches, instead of having to rename it everywhere?
>
> i hope that Thomas already did this in his upcoming -rt series.
>
> >
> > > this commit makes things use more neutral function names
> > > which dont make implications about the underlying lock.
> > >
> > > the only real change is the return value of console_trylock
> > > which is inverted from try_acquire_console_sem()
> > >
> > > Signed-off-by: Torben Hohn <torbenh@gmx.de>
> > > CC: Thomas Gleixner <tglx@tglx.de>
> >
> > I don't mind this rename, but is it really going to help anything out?
> > What's the odds of the -rt portion of this patch ever making it to
> > mainline?
>
> the -rt portion only changes the semaphore to a mutex.
> since the console_sem is used with mutex semantics, i dont see any
> reason, not to merge that portion too.
>
> i am just trying to shrink the -rt patch to make it more maintanable :)
>
Yeah, I think it's a better name and if we can indeed switch that
semaphore to a mutex then that's a good thing to do.
next prev parent reply other threads:[~2011-01-20 20:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 15:58 [PATCH] change acquire/release_console_sem() to console_lock/unlock() Torben Hohn
2011-01-20 15:58 ` Torben Hohn
2011-01-20 15:58 ` Torben Hohn
2011-01-20 15:58 ` Torben Hohn
2011-01-20 16:34 ` Greg KH
2011-01-20 16:34 ` Greg KH
2011-01-20 16:34 ` Greg KH
2011-01-20 16:55 ` torbenh
2011-01-20 16:55 ` torbenh
2011-01-20 16:55 ` torbenh
2011-01-20 16:55 ` torbenh
2011-01-20 16:55 ` torbenh
2011-01-20 20:35 ` Andrew Morton [this message]
2011-01-20 20:35 ` Andrew Morton
2011-01-20 20:35 ` Andrew Morton
2011-01-20 20:35 ` Andrew Morton
2011-01-21 8:10 ` Geert Uytterhoeven
2011-01-21 8:10 ` Geert Uytterhoeven
2011-01-21 8:10 ` Geert Uytterhoeven
2011-01-21 8:10 ` Geert Uytterhoeven
2011-01-21 8:23 ` Andrew Morton
2011-01-21 8:23 ` Andrew Morton
2011-01-21 8:23 ` Andrew Morton
2011-01-21 8:10 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2011-01-20 15:58 Torben Hohn
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=20110120123507.ac89c034.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=airlied@linux.ie \
--cc=benh@kernel.crashing.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=damm@opensource.se \
--cc=dan.j.williams@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gmsoft@tuxicoman.be \
--cc=grant.likely@secretlab.ca \
--cc=james@albanarts.com \
--cc=jbarnes@virtuousgeek.org \
--cc=jeremy.fitzhardinge@citrix.com \
--cc=jmorris@namei.org \
--cc=jslaby@suse.cz \
--cc=kees.cook@canonical.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=paulus@samba.org \
--cc=s.hauer@pengutronix.de \
--cc=torbenh@gmx.de \
--cc=xen-devel@lists.xensource.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.