From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756760AbbFRUAX (ORCPT ); Thu, 18 Jun 2015 16:00:23 -0400 Received: from mga02.intel.com ([134.134.136.20]:6029 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754435AbbFRUAS (ORCPT ); Thu, 18 Jun 2015 16:00:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,640,1427785200"; d="scan'208";a="713500776" Message-ID: <5583234E.5080807@linux.intel.com> Date: Thu, 18 Jun 2015 13:00:14 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Thomas Gleixner , Kanaka Juvva CC: kanaka.d.juvva@intel.com, glenn.p.williamson@intel.com, matt.fleming@intel.com, will.auld@intel.com, andi@firstfloor.org, ananth.s.narayan@intel.com, linux-kernel@vger.kernel.org, andrew.j.herdrich@intel.com, tony.luck@intel.com, peterz@infradead.org, x86@kernel.org, mingo@redhat.com, hpa@zytor.com, luto@amacapital.net, dvlasenk@redhat.com, bp@alien8.de, peter.p.waskiewicz.jr@intel.com, imammedo@redhat.com, bp@suse.de, ross.zwisler@linux.intel.com, jacob.w.shin@gmail.com, dirk.j.brandewie@intel.com, vikas.shivappa@intel.com, edwin.verplanke@intel.com, tomasz.kantecki@intel.com Subject: Re: [PATCH v1 2/2] x86, perf,cqm: handle CPU hotplug References: <1434653369-5162-1-git-send-email-kanaka.d.juvva@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/18/2015 12:47 PM, Thomas Gleixner wrote: >> > @@ -1239,12 +1239,15 @@ static inline void cqm_pick_event_reader(int cpu) >> > int phys_id = topology_physical_package_id(cpu); >> > int i; >> > >> > + mutex_lock(&cache_mutex); > I already explained it to Vikas. You CANNOT take a mutex in that code > path as it runs with interrupts disabled on a CPU which cannot > schedule. How did lockdep not blow up and scream about this?