From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754558AbdEMNkJ (ORCPT ); Sat, 13 May 2017 09:40:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35251 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752537AbdEMNkI (ORCPT ); Sat, 13 May 2017 09:40:08 -0400 Date: Sat, 13 May 2017 06:40:03 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Mathieu Desnoyers , Masami Hiramatsu Subject: Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order Reply-To: paulmck@linux.vnet.ibm.com References: <20170512171544.100715273@goodmis.org> <20170512194956.GH4626@worktop.programming.kicks-ass.net> <20170512173448.5e2106b6@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170512173448.5e2106b6@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17051313-0024-0000-0000-0000026D62A4 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007054; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000211; SDB=6.00859945; UDB=6.00426337; IPR=6.00639566; BA=6.00005346; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015441; XFM=3.00000015; UTC=2017-05-13 13:40:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17051313-0025-0000-0000-000043FBC135 Message-Id: <20170513134003.GA30927@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-13_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705130251 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 12, 2017 at 05:34:48PM -0400, Steven Rostedt wrote: > On Fri, 12 May 2017 21:49:56 +0200 [ . . . ] > This means that text_mutex, which was taken by the alternative code, no > longer is taken in cpu hotplug code. That means there's no longer a > deadlock scenario, as we don't have anyplace(*) that grabs > get_online_cpus() and takes the text_mutex. Removing that will > simplify things tremendously! > > (*) with one exception: perf. > > Currently perf does a get_online_cpu() at a high level. Will it be > possible to move that down, such that we don't have it taken when we do > any software events? Can perf get rid of get_online_cpus(), perhaps using the mutexes acquired by perf_event_init_cpu() or by perf_event_exit_cpu()? Thanx, Paul