From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH] device: separate all subsys mutexes (was: Re: [BUG] potential deadlock led by cpu_hotplug lock (memcg involved)) Date: Tue, 12 Mar 2013 08:43:41 -0700 Message-ID: <20130312154341.GB18852@kroah.com> References: <513ECCFE.3070201@huawei.com> <20130312101555.GB30758@dhcp22.suse.cz> <20130312110750.GC30758@dhcp22.suse.cz> <20130312130504.GD30758@dhcp22.suse.cz> <1363102105.24558.4.camel@laptop> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=EFPosR6JNwMPLLV9pL2aWmYjh1U2PGwXzBS7UoTj/T8=; b=KxP502wxvUdC5lkxOmBp5DI/ptxskWNd7394cS+C1f6CE8x7zzVTcJedUHIvxrwGep S1N61Dn5HMh41o1F5BJS18Slsi/vUCqnohj++baj7lzBYm5SZX526A8GixgjF1oOEmkO hkjl/UoxNVCHYdgwb8GxWZftoAEDpsJljIA78= Content-Disposition: inline In-Reply-To: <1363102105.24558.4.camel@laptop> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Peter Zijlstra Cc: Michal Hocko , Li Zefan , LKML , cgroups , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, KAMEZAWA Hiroyuki , Johannes Weiner , Andrew Morton , Jiri Kosina , Ingo Molnar , Kay Sievers On Tue, Mar 12, 2013 at 04:28:25PM +0100, Peter Zijlstra wrote: > On Tue, 2013-03-12 at 14:05 +0100, Michal Hocko wrote: > > @@ -111,17 +111,17 @@ struct bus_type { > > struct iommu_ops *iommu_ops; > > > > struct subsys_private *p; > > + struct lock_class_key __key; > > }; > > Is struct bus_type constrained to static storage or can people go an > allocate this stuff dynamically? If so, this patch is broken. I don't think anyone is creating this dynamically, it should be static. Why does this matter, does the lockdep code care about where the variable is declared (heap vs. static)? thanks, greg k-h