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