From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932164AbdBJTOl (ORCPT ); Fri, 10 Feb 2017 14:14:41 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:19731 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752385AbdBJTOi (ORCPT ); Fri, 10 Feb 2017 14:14:38 -0500 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 10 Feb 2017 11:14:32 -0800 Date: Fri, 10 Feb 2017 11:17:39 -0800 From: Alex Goins X-X-Sender: agoins@agoins-DiGiTS To: Sebastian Andrzej Siewior CC: Andy Ritger , Thomas Gleixner , LKML , "linux-rt-users@vger.kernel.org" , Ingo Molnar Subject: Re: [PATCH RT] Align rt_mutex inlining with upstream behavior In-Reply-To: <20170210182807.6gzs3xn3ga727xsb@linutronix.de> Message-ID: References: <1485312350-1265-1-git-send-email-agoins@nvidia.com> <20170126170109.6zhoohgodtvxot54@linutronix.de> <20170130173534.GA24966@prokofiev.nvidia.com> <20170203155434.utptndmoskcyimn7@linutronix.de> <20170203164924.GB19814@prokofiev.nvidia.com> <20170210175049.3cvrk5ki7c6uiblg@linutronix.de> <20170210180929.GC9583@prokofiev.nvidia.com> <20170210182807.6gzs3xn3ga727xsb@linutronix.de> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) X-NVConfidentiality: public MIME-Version: 1.0 X-Originating-IP: [172.16.171.5] X-ClientProxiedBy: HQMAIL103.nvidia.com (172.20.187.11) To HQMAIL103.nvidia.com (172.20.187.11) Content-Type: multipart/mixed; boundary="8323329-1299437135-1486754266=:2050" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-1299437135-1486754266=:2050 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT This should work. Reviewed-by: Alex Goins Thanks, Alex On Fri, 10 Feb 2017, Sebastian Andrzej Siewior wrote: > On 2017-02-10 10:09:29 [-0800], Andy Ritger wrote: > > Is the > > > > WARN_ON(rt_mutex_is_locked(lock)); > > > > in rt_mutex_destroy() valuable in non-CONFIG_DEBUG_MUTEXES kernels, > > such that it would be better to always call it, and not noop away mutex_destroy() > > non-CONFIG_DEBUG_MUTEXES kernels? I thought that was your objection to > > Alex's original patch. > > It kind of was… > So first I removed the GPL symbol. Then I wasn't too happy about it > especially since it was not introduced as part of RT. So I reverted that > changed and aligned with mainline behaviour (the mutex_rt.h hunk). But > then I noticed that with CONFIG_DEBUG_MUTEXES=n and > CONFIG_DEBUG_RT_MUTEXES=y we still have a regression compared to !RT and > this was the initial motivation to fix things. > Then I got curious why mutex_lock() (which is essential rt_mutex_lock()) > works and noticed the wrapper around it. And while looking at it I > decided to go back to strip the GPL part from export symbol instead of > adding a wrapper. And here I am. > Then I was looking at the patch and decided to align with mainline (and > keep that one hunk) in case Ingo ask for his GPL symbol. > > > Thanks, > > - Andy > Sebastian > --8323329-1299437135-1486754266=:2050--