xen-devel
[Xen-devel] Re: [PATCH] change acquire/release_console_sem() to console_
To: |
torbenh <torbenh@xxxxxx> |
Subject: |
[Xen-devel] Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock() |
From: |
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> |
Date: |
Thu, 20 Jan 2011 12:35:07 -0800 |
Cc: |
Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, Paul Mackerras <paulus@xxxxxxxxx>, Alberto Panizzo <maramaopercheseimorto@xxxxxxxxx>, Phil Edworthy <phil.edworthy@xxxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Florian Tobias Schandinat <FlorianSchandinat@xxxxxx>, James Morris <jmorris@xxxxxxxxx>, Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx>, Kees Cook <kees.cook@xxxxxxxxxxxxx>, Marcin Slusarz <marcin.slusarz@xxxxxxxxx>, Antonino Daplas <adaplas@xxxxxxxxx>, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, linux-geode@xxxxxxxxxxxxxxxxxxx, Gleixner <tglx@xxxxxxxxxxxxx>, linux-omap@xxxxxxxxxxxxxxx, Liam Girdwood <lrg@xxxxxxxxxxxxxxx>, Thomas, Daniel Walker <dwalker@xxxxxxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxxxxxx>, Geoff Levand <geoff@xxxxxxxxxxxxx>, Jiri Kosina <jkosina@xxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Ralf Baechle <ralf@xxxxxxxxxxxxxx>, Kyle McMartin <kyle@xxxxxxxxxxx>, Takashi Iwai <tiwai@xxxxxxx>, Alex Deucher <alexdeucher@xxxxxxxxx>, linux-fbdev@xxxxxxxxxxxxxxx, James Hogan <james@xxxxxxxxxxxxx>, David Airlie <airlied@xxxxxxxx>, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Clausen <lars@xxxxxxxxxx>, Wu Zhangjin <wuzhangjin@xxxxxxxxx>, Helge Deller <deller@xxxxxx>, Kay Sievers <kay.sievers@xxxxxxxx>, Ben Skeggs <bskeggs@xxxxxxxxxx>, Dave Airlie <airlied@xxxxxxxxxx>, Ondrej Zary <linux@xxxxxxxxxxxxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxx>, Tejun Heo <tj@xxxxxxxxxx>, Magnus Damm <damm@xxxxxxxxxxxxx>, Daniel Mack <daniel@xxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Jason, Caglar Akyuz <caglar@xxxxxxxxxxxxxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Paul Mundt <lethal@xxxxxxxxxxxx>, Kościelnicki <koriakin@xxxxxxxx>, Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>, Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>, "James E.J. Bottomley" <jejb@xxxxxxxxxxxxxxxx>, Grant Likely <grant.likely@xxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxx>, Andres Salomon <dilinger@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Francisco Jerez <currojerez@xxxxxxxxxx>, Alexey Dobriyan <adobriyan@xxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Werner Fink <werner@xxxxxxx>, Nicolas Pitre <nicolas.pitre@xxxxxxxxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, linux-parisc@xxxxxxxxxxxxxxx, Greg KH <gregkh@xxxxxxx>, Ondrej Zajicek <santiago@xxxxxxxxxxxxx>, Jean Delvare <khali@xxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Daniel Vetter <daniel.vetter@xxxxxxxx>, Julia Lawall <julia@xxxxxxx>, Lars-Peter, Jiri Slaby <jslaby@xxxxxxx>, devel@xxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, Lionel Debroux <lionel_debroux@xxxxxxxx>, David Brown <davidb@xxxxxxxxxxxxxx>, Abhijeet Dharmapurikar <adharmap@xxxxxxxxxxxxxx>, cbe-oss-dev@xxxxxxxxxxxxxxxx, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Jerome Glisse <jglisse@xxxxxxxxxx>, Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>, Marcin, Guy Martin <gmsoft@xxxxxxxxxxxx>, Wessel <jason.wessel@xxxxxxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, Guennadi Liakhovetski <g.liakhovetski@xxxxxx> |
Delivery-date: |
Fri, 21 Jan 2011 04:49:36 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20110120165502.GA10832@xxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<1295539104-13210-1-git-send-email-torbenh@xxxxxx> <20110120163448.GA30588@xxxxxxx> <20110120165502.GA10832@xxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Thu, 20 Jan 2011 17:55:02 +0100
torbenh <torbenh@xxxxxx> 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@xxxxxx>
> > > CC: Thomas Gleixner <tglx@xxxxxxx>
> >
> > 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.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|