Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752304AbdFURxV (ORCPT ); Wed, 21 Jun 2017 13:53:21 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:57691 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751095AbdFURxQ (ORCPT ); Wed, 21 Jun 2017 13:53:16 -0400 Authentication-Results: verizon.com; dkim=none (message not signed) header.d=none;verizon.com; dmarc=none action=none header.from=fb.com; Date: Wed, 21 Jun 2017 13:52:46 -0400 From: Dennis Zhou To: "Levin, Alexander (Sasha Levin)" , Tejun Heo CC: Christoph Lameter , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "kernel-team@fb.com" Subject: [PATCH 1/1] percpu: fix early calls for spinlock in pcpu_stats Message-ID: <20170621175245.GA99514@dennisz-mbp.dhcp.thefacebook.com> References: <20170619232832.27116-1-dennisz@fb.com> <20170619232832.27116-5-dennisz@fb.com> <20170621161836.tv67op4hokja35bc@sasha-lappy> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170621161836.tv67op4hokja35bc@sasha-lappy> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c091:200::f5f] X-ClientProxiedBy: BN6PR08CA0066.namprd08.prod.outlook.com (10.172.144.28) To SN1PR15MB0510.namprd15.prod.outlook.com (10.163.205.28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb0609fa-8808-434e-b7c8-08d4b8ce57b1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN1PR15MB0510; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0510;3:jFwh8p45Tdh5+V+R85tUr8P7vPyRPwmj0gP11WxM1PsQKwZVo19YJULr3KJCZ/gl86pWyw7LDEVs1QmwV8Qzof5Xry6Tx23SAj9FeDwCWy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LFLgEn3s9NE11gc4lN3h6dQ1/lw4jxhzAK7if8Z66u+qrsSLt93YwyCflwD9qJDqKKJ3WvW4z+OT807cf4uFWmkWMpt3o2CRC6+tcW82NxN3oVtk6S4o+jADsQvo/KxrQFujAMIDmyAQac3uJqgLI7zx2EW//83ldj1FyYCRyTwVu0ixCn4+MmAx0SWu7Fz8f4OnFXWyjylx3BjghF0YbWF6GmyoNGajzQUelWRI2jeviC4GQg2E5C1bcXX2p/roUXgSdgafM3LdjFjtItukHY1slRJFQXRZvKfVz+wxCxEi0qrVSlGguayYyzQi4NjOhmRQLoB+KOWpQmcn1uJAHUV9pcv+D2UDYZvxT9rcmkNcLrPqzmBRM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(154440410675630); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR15MB0510;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR15MB0510; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0510;4:Ugx2l1kDD66vXlus8vxMQ1GYMwujhDMzC5CI+CLQIr?= =?us-ascii?Q?0+gqCPXuECVYECa+eYl+RRN2RgBtTCuENInz14OBEiBuM3Ltr1oRDCVk63Uo?= =?us-ascii?Q?NDSFAoMIE7fCb8OVXUCnhSDG8F8xCsqHycc+3ZignM0Iiwv/+xrHAFxCzNCb?= =?us-ascii?Q?ad6Ax+QkarLs4sj4C/ZYCl2C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jc/DSuCdx?= =?us-ascii?Q?vOGPzms+4g9/yqOuw/46AmAcxIiLg1UvGjWKfQ/kr0CYcXP/pl+MyviL8GnR?= =?us-ascii?Q?bfI49Bwdh/EHTEEOpHBhm3MQTLkInQ7ThQg33RlagKWx1zTwB0y0r6d2c6UG?= =?us-ascii?Q?ZRERTLNZWmIbZDSlZ+nl3Bm/NWvlZ4lyT3eb6Y1nEDwKKm4ew257gqQw=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(39400400002)(39850400002)(39410400002)(39840400002)(39450400003)(50986999)(2906002)(76176999)(2950100002)(25786009)(4326008)(7736002)(1076002)(6116002)(54356999)(6666003)(53936002)(38730400002)(9686003)(8676002)(23726003)(47776003)(6506006)(50466002)(81166006)(54906002)(55016002)(33656002)(83506001)(189998001)(5660300001)(86362001)(305945005)(478600001)(42186005)(4001350100001)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0510;H:dennisz-mbp.dhcp.thefacebook.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0510;23:jDirMVN6+rIUtbJHhHXu/0cjbunYdOipSFAKXUw9t?= =?us-ascii?Q?VeHUoUPCDexG9pzwQyUQ/tIV8ftJgNPy9T0Q03gg0eHq2Gd/S2uZ+2HDcT31?= =?us-ascii?Q?VfEjHDtuPbT8GtZHLQqKolkjlSjlfooy/7WTx7/D0DHoIWpoHNtuIytIPYZb?= =?us-ascii?Q?6os7unbpq+O7qjkfDVOdarvgZY7T3g/D0pmUauZF89IEDeWljnks3vKVNMM3?= =?us-ascii?Q?YL0r+buFNh/+4MT2CzVdC5R4mIr0WsP59CUfpBujqoxjI5EXJV/JBZQpstvH?= =?us-ascii?Q?J2NP8LAFw5qNHOA5pdP23N44XxUVfjAERO2rY8N9JE6do9Wb5VS66vzzYr0a?= =?us-ascii?Q?WRCc5qcRbQW/xUOlrw+ZrgyLnTnFiCejSXKQaqtJaL/iCAnA6UGbqsinQfQj?= =?us-ascii?Q?ccdql2lG92D356odfqvEOZ3bHVyiXi7/v+ZPsG+YOfLuQ1PCrwKa8XscHhLA?= =?us-ascii?Q?4HAxjlZMGF2MBauwwmxetn7tF/9BCPnXovTdbTPx4LFygvclWqAdzz5Cs+cE?= =?us-ascii?Q?iNTfXqxZ4GNVaCpa1x1V2c1OTYRfZ11TxU/ivnqwHzazHot1/HxKjbafX3tD?= =?us-ascii?Q?FjSG3ypaQ8bZfZ5Xrimeh8+Ah6++qWTK4NdLDQYD3ndstWZyu2J6zsGVhLn5?= =?us-ascii?Q?O8UcRT+m79vYYDrNCXGmXSgvsvsIBAdowgzracplSv34jo+xqo7Wedh8wwDF?= =?us-ascii?Q?WvSTpIIBmVc2l3CJ40Jnaqhqas0VWj2Wo8041eUaXjIRcJ0lo1FYxwd6P6jT?= =?us-ascii?Q?pJzm/kXBDEptYT0x8rju1nLP0DrdVNz9ngiGbeFmYCPOZ/h3reCNoFXCe5Y+?= =?us-ascii?Q?4NdV0Edly+Sz/xJbn7u6nKrd9fqqlkCbVxEgQgy14du8tlGU3KZQM5IBqro9?= =?us-ascii?Q?iuHyqq1hgod966mgBAQZw4BMDb9KfUyhgk2U6p6ZL7Kos7YEicANbKbFbNp3?= =?us-ascii?Q?ifsrKrOytJsnBWkbslhglIxJIr3uAmSSZQJDHY0zvx9haxsQovMbK9cD4wsM?= =?us-ascii?Q?yr5GVUC56ZppL3RQhaEjGnN?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0510;6:19gOvFhzV7qku7spn1idMgUKUvXsBkOvMlklnDCLtY?= =?us-ascii?Q?O1ivkvnlzMvtXKkYKlLTFCyoCfc6in8NQKQ8GA4OX9c7+wRRWbpN8beNprvV?= =?us-ascii?Q?PV3Q41zuP0OnbDmvzbLux762eV2La7yloslQ+tqSxqpg96QmCB7J7lcF210P?= =?us-ascii?Q?yJIg39m3rtofgLr9IHyKKl4rrHOsuBG526ziW4K9p8YVMM+IvP1rpHeA5Wst?= =?us-ascii?Q?BLV7/EbZtyMTXL8vXL0xN1ljEUvMqvs4ddT58yZgbtd+NuyMFceLmoiJduxc?= =?us-ascii?Q?RQZZBATUa0rBiXYks5tjY2Hn1KETxe0odBUqG4m4ebsmw5Z5pUetfznNqkTB?= =?us-ascii?Q?EDpYZcdMbUPypeCHVj3xxhF4NdfxLdlAlPa60mqSWU8niSKz32F6oSID4Jfx?= =?us-ascii?Q?PV163R7YJ0gkCjmRv+7mZRS7ZUd7Ll2R0x87tS76vYhgv6xE/IeDQnsO5vRO?= =?us-ascii?Q?yXKjwOQAxisR0hOiQoALXi5d8Y8hd80cQ5yiJO+9YIZZl0u6hhc/c6Fycere?= =?us-ascii?Q?KHALtsQXYb+h1sWd/K3LM5efTZWZjjgE8k2vRFh36kA8thY9ph3+BHqGXio1?= =?us-ascii?Q?HQQbffPuvfUsgnu0WKN4qTaiiFt0NWl2/uaHajP423pGbpwATnOpA7JY1Yte?= =?us-ascii?Q?dmJgYnRJsHrA1a3/dmI3BSxIs7rmA15F8hxoWSLbCWfVtIzr9GpvpnnDrfhc?= =?us-ascii?Q?DgxSylsKicgjO/ejMgsMTf8Nn7nulk53wWm0g75jShcK6uk/XWSH7FC1Mqrn?= =?us-ascii?Q?zZxJljGJAob1o8wxoiwyqghraSWMSzuMGhbL16OwpR5k1DCVN2UK5H3KGC5W?= =?us-ascii?Q?Dpq4CLmSS/RWEmoRhlyBmCkLcSmF4OgDQYDakH0dRXtbGhrYp4OmfBFPnGev?= =?us-ascii?Q?cs+f15GfitJe0QL+DASHwEbN3VzIki+B2Oq+G1tZ0S8E1wpr92xsLUsr3tzh?= =?us-ascii?Q?neDVMUBX9ADPGB7GJpdxX6Hqi8ie8Bzp6n5iHdzv3P34oT0cHlYVhu2JxFrr?= =?us-ascii?Q?4=3D?= X-Microsoft-Exchange-Diagnostics: 1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0GAMe6Z+99InETVaDbxRu8Ah2ga8rkp/0jrAceLwRgnGZSGBJjmkQqK8nVbZhso/vQH18QF6UK5xxQ7ll+FvUgUvOFaOmSJ5eOA1R3ByLpAbWCVJzToCvTCNGeb1xYrsGGSZeWuHv4Zx+eNB8FU1qE29Ifko1mIufNxCDcGFug1+XJSPuHaMgagovKxEFSWmbpfZYuF0GzkUe3PkSdnEsGpOrPbItwZw9Gz6xMnqLEqOgTAMed6vtl8bJMRAtgbNLBj1+84Oa0Ls39MxbsL0YkejKADRaiIPn2evurEmkaFwJojO0x3OURLOxY+aIV7r4TfsVsoOD++GGo21GzVS0a+FPKGYQC0FpKScKV1x7xqF0GY69IpYafUkH2sLXhgLM1JIGB1DpBmKJe4DiljtcTBA9tcNm+kmP+4evLohschq8rZz+Z8cQPyQZwgj+E= X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0510;20:835RtE6fzC+TehM99OjeyjszqWuabhR+lSjTDdPNaX9/nQOvfIR10DlkXSIS72aYvA5quCDNrI0AHk7LqtZATU4amNuwPBVLSFzIdxhBKLXMVMDFmthOhXzRYqPdfzZfyi5T0+pu1jJufhe45nc5UcdcS/QyNKx7Msq6VrXYmTc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 17:52:53.4183 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0510 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-21_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1931 Lines: 66 >From 2c06e795162cb306c9707ec51d3e1deadb37f573 Mon Sep 17 00:00:00 2001 From: Dennis Zhou Date: Wed, 21 Jun 2017 10:17:09 -0700 Commit 30a5b5367ef9 ("percpu: expose statistics about percpu memory via debugfs") introduces percpu memory statistics. pcpu_stats_chunk_alloc takes the spin lock and disables/enables irqs on creation of a chunk. Irqs are not enabled when the first chunk is initialized and thus kernels are failing to boot with kernel debugging enabled. Fixed by changing _irq to _irqsave and _irqrestore. Fixes: 30a5b5367ef9 ("percpu: expose statistics about percpu memory via debugfs") Signed-off-by: Dennis Zhou Reported-by: Alexander Levin --- Hi Sasha, The root cause was from 0003 of that series where I prematurely enabled irqs and the problem is addresssed here. I am able to boot with debug options enabled. Thanks, Dennis mm/percpu-internal.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mm/percpu-internal.h b/mm/percpu-internal.h index d030fce..cd2442e 100644 --- a/mm/percpu-internal.h +++ b/mm/percpu-internal.h @@ -116,13 +116,14 @@ static inline void pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) */ static inline void pcpu_stats_chunk_alloc(void) { - spin_lock_irq(&pcpu_lock); + unsigned long flags; + spin_lock_irqsave(&pcpu_lock, flags); pcpu_stats.nr_chunks++; pcpu_stats.nr_max_chunks = max(pcpu_stats.nr_max_chunks, pcpu_stats.nr_chunks); - spin_unlock_irq(&pcpu_lock); + spin_unlock_irqrestore(&pcpu_lock, flags); } /* @@ -130,11 +131,12 @@ static inline void pcpu_stats_chunk_alloc(void) */ static inline void pcpu_stats_chunk_dealloc(void) { - spin_lock_irq(&pcpu_lock); + unsigned long flags; + spin_lock_irqsave(&pcpu_lock, flags); pcpu_stats.nr_chunks--; - spin_unlock_irq(&pcpu_lock); + spin_unlock_irqrestore(&pcpu_lock, flags); } #else -- 2.9.3