From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock() Date: Thu, 20 Jan 2011 12:35:07 -0800 Message-ID: <20110120123507.ac89c034.akpm@linux-foundation.org> References: <1295539104-13210-1-git-send-email-torbenh@gmx.de> <20110120163448.GA30588@suse.de> <20110120165502.GA10832@siel.b> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110120165502.GA10832@siel.b> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: torbenh Cc: xen-devel@lists.xensource.com, Kees Cook , linux-fbdev@vger.kernel.org, Mark Brown , Sascha Hauer , James Hogan , David Airlie , Benjamin Herrenschmidt , Jesse Barnes , James Morris , Grant Likely , Paul Mackerras , linux-parisc@vger.kernel.org, Magnus Damm , Jiri Slaby , Dan Williams , devel@driverdev.osuosl.org, Guy Martin , Kuninori Morimoto , Jeremy Fitzhardinge Russell King List-Id: virtualization@lists.linuxfoundation.org On Thu, 20 Jan 2011 17:55:02 +0100 torbenh 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 > > > CC: Thomas Gleixner > > > > 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.