From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933079Ab3CLQNU (ORCPT ); Tue, 12 Mar 2013 12:13:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50395 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932432Ab3CLQNT (ORCPT ); Tue, 12 Mar 2013 12:13:19 -0400 Date: Tue, 12 Mar 2013 17:13:14 +0100 From: Michal Hocko To: Peter Zijlstra Cc: Li Zefan , LKML , cgroups , linux-mm@kvack.org, KAMEZAWA Hiroyuki , Johannes Weiner , Andrew Morton , Jiri Kosina , Ingo Molnar , Kay Sievers , Greg Kroah-Hartman Subject: Re: [PATCH] device: separate all subsys mutexes (was: Re: [BUG] potential deadlock led by cpu_hotplug lock (memcg involved)) Message-ID: <20130312161314.GA5963@dhcp22.suse.cz> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1363102105.24558.4.camel@laptop> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 12-03-13 16:28:25, 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? All of them should be static, at least this is what my cscope says. I might have missed something of course - I am not very familiar with this area to be 100% sure. -- Michal Hocko SUSE Labs