Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdF3Pyh (ORCPT ); Fri, 30 Jun 2017 11:54:37 -0400 Received: from mail-db5eur01on0107.outbound.protection.outlook.com ([104.47.2.107]:14063 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751695AbdF3Pyf (ORCPT ); Fri, 30 Jun 2017 11:54:35 -0400 Authentication-Results: de.ibm.com; dkim=none (message not signed) header.d=none;de.ibm.com; dmarc=none action=none header.from=virtuozzo.com; Subject: Re: [PATCH] mm/memory-hotplug: Switch locking to a percpu rwsem To: Thomas Gleixner Cc: Michal Hocko , LKML , "linux-mm@kvack.org" , Andrew Morton , Vlastimil Babka , Vladimir Davydov , Heiko Carstens References: <20170630092747.GD22917@dhcp22.suse.cz> <3f2395c6-bbe0-23c1-fe06-d17ffbf619c3@virtuozzo.com> From: Andrey Ryabinin Message-ID: Date: Fri, 30 Jun 2017 18:56:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM5PR0402CA0008.eurprd04.prod.outlook.com (2603:10a6:203:90::18) To AM4PR0801MB2724.eurprd08.prod.outlook.com (2603:10a6:200:14::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c8a5c28-bfe1-4067-221f-08d4bfd04bd1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AM4PR0801MB2724; X-Microsoft-Exchange-Diagnostics: 1;AM4PR0801MB2724;3:ukv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zNjIEHGMFPG7K2zB15QTUcgGiGXpTPb/XbES50WxOGIvw8X0HxgnUPb0lHFRAW+5uDzYQdkyFw9NzjiCyt2Th7qbF8wqEBl71ZKioVMWUChhc8JaIfac5qyCu8+ykcXHVHxpl/gOWbsv7WkGnkU13IiForZriP82+vNzOwlPobEAIHQU/wcm/yhetOVCi47SQ/eUCi3S2UGLYXn4ehA9h03FcOqT+EXjRbipvHCTpBb8V3NB+mjqXdNNzuFz3UMjT0pNxdCyYcPIkrY/6cksHdcyDMaLOC3AQC6iK34RDbm8PYd7I2c3FecmfLqotxTdFnIBslnnYyQtMWXboT7cK0Q4BoRBmTfsoFRjee2OMfMS4QmQ== X-Microsoft-Exchange-Diagnostics: 1;AM4PR0801MB2724;20:IErCi23eyIINHwJrG1knaYVmyDZLKBUMS03LSHQYHS6XktRDVRhm7HjKcC6Kkk3ZbSrE1ramFSKIGwf/Ujd1nOkSlDrwdE6sPo+GE8PngXINlasDoBdsOSyIhePWI8HBt/n2uGJFdjsIBYGpUmGLWJXYYOIe4Mr4DRjt3EIL3Q+JRUVyFbx7hdWYoKlBQc8P00dowDo65wuRT7FwJncAVTZP1Y1SHcIdx/uxmTO8Nt9XzpDPv7XMTYtvUITQN4YyISUO0zMRTwBbB4yWsGbU3Q4n0yMnA+79jcY0ckr7CZBmx/fcdfXPfiyf0a9l2uWG0IVyQZ1kBWu/m1gIM6B/oL0KWV5I1Ps6PQrUNxUQIL3+PgXuwlGeOf4X99VkkQZUvLn0hfefADL2KG33wj54yAnyJz9GXsMZKA87soIU9Nc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(190756311086443)(133145235818549)(236129657087228)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM4PR0801MB2724;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM4PR0801MB2724; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTRQUjA4MDFNQjI3MjQ7NDpnK2hscmdZS2s5VncrdWs2NWlnUzcvWFRo?= =?utf-8?B?ZmcrS2FBS2EzbGZXc0hTc2QxUHVVL1p6UnRabnh3cEk2MWZsLzV5cTE1eUxm?= =?utf-8?B?Z0MwOVQybDYvS3pyTXdwNlBqK1RqZkVyUXhzeit2dGJpdFRnK2t2UWkram5D?= =?utf-8?B?V3pyNDdaL2Rvc1lPcGxRaDRFd2xuaEhUSnNjQk5IU0NDVm5wdjB3L1lhL2cw?= =?utf-8?B?TnN4QTBicmpEV1pnc1NFalB6YzRRRHQ2WHgrdlZBdkVlbkpacVlRbi8ySXdi?= =?utf-8?B?bUxJYzF2Ty92czZscFNBYXFyMzhzeENUZmZiOHF3M1d4R3hFamFCcU41RFlz?= =?utf-8?B?V1Z5cmRrUEdQR3NRT0ExN3p3a1ZiRkdKMlZMNVhaT0UwSHlIaDdHckhWTEF6?= =?utf-8?B?WEFaVDZqQVFwWUlmSUZSbDcvcHUvdWUyQ0tjNEdIYVFlNUorNG5OSWdVTWxG?= =?utf-8?B?ekd1Y0ZjcllkZXVNdFBTZFBPWFZwZXY2a0xjQVd4ZlA4SC9ySkp2WlJFWks5?= =?utf-8?B?bzhKV3htN3h3WnRnNzVlU0M1Wmgyc0t6OERmLzBIMTI1SkxiUysyMEtxRTFP?= =?utf-8?B?bVpnZVNaUzh6Mi9qQlVkTlJiaHpuc1pkZldTWG1IcUJ3M0dmcEd1Rm0xdW5C?= =?utf-8?B?eDVZdmlJQmwvWFZ3UEhCcW9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rRzB1RWdlM2dQZXZwWDBGMTdhbHU4T0xiTnNuS0ZuSDB4bHRiVTYvZlEr?= =?utf-8?B?cklZR2ltNXhpSU9PcVBjblZhUHNzQkR2R2tzL1VDY05FcU1seXljeU9rb2M0?= =?utf-8?B?ZmlIR2FYZ2R3TjNvYm1YSHRtVVZMSndQOUplNUVvL3hPWnMzd0pwalJHOXU4?= =?utf-8?B?UTRSaGlmbElybDFpbG1lM2c9PQ==?= X-Forefront-PRVS: 0354B4BED2 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(39400400002)(39410400002)(39840400002)(377454003)(24454002)(6246003)(65956001)(110136004)(65806001)(66066001)(38730400002)(83506001)(47776003)(77096006)(6486002)(229853002)(65826007)(4001350100001)(6666003)(5660300001)(478600001)(2906002)(53936002)(31686004)(305945005)(36756003)(86362001)(31696002)(8676002)(6916009)(50466002)(81166006)(189998001)(54906002)(7736002)(23676002)(33646002)(93886004)(230700001)(53546010)(54356999)(25786009)(6116002)(4326008)(50986999)(76176999)(2950100002)(3846002)(42186005);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR0801MB2724;H:[172.16.25.12];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTRQUjA4MDFNQjI3MjQ7MjM6aWhUWjhqeGd3MFZ3bUVxVXlsczJFNlFH?= =?utf-8?B?eDMyK2trV29kQWUrVlpFbC8zb05ITXZPVU0vU2lkYW85UjRsdlNBWEpIWGJC?= =?utf-8?B?OU1WRy8zSXpjcHFORVNCY0RwdTFFdW10azIxZVFoUTlwNHRHN05RdzMxMHk3?= =?utf-8?B?VGMwb2hMUEJHV01BYUFOQ3U3QW5Bb2RLcWFzdHJERWhiWlVKNlhxUEx4NUJ3?= =?utf-8?B?ZktxbTJCUTF3YzVYWmlmVERoem5tK0w0ZlE2cmNBblRJbU5OU2FCV3JPQVJa?= =?utf-8?B?eDQ5dHRWeVF6aEtRU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NWGycJAVEcCfAcI8nT/y/mmTICfOCsFy9m7ieGOQjI6PmUazsDth8AggI9+dNRaIu4p1x3szwUYy5jVeXgaApTzuuzrH8bFa6pLgpzUNIYEhyfi0LA+TwUM8wfagvf/0axZ7Pj3aP9tapBDLaIfRWWbxYhDtN5pNtnQE7EskdCJIA3Jv9z+1FU59V5SEWPMrdsMDSd/n651awb7NIZ1QclFnpYBCAQ2UCK9NK88W8HjIqxG9dLv980LzN1JYNYvcG1Ay+5/P8iq8OF+5VxEuVFcdN3u1QwhoQhwXO4VJ1MyIaGFNuVTPy0i7SCGuDOGjqJyEbKEY56slmlLzAga7XdpchqC/qYG4a11u1d01qpXTh2NsMX7cPS9EiRKhznk0g6IEwTekGxIppL0EeuPlB923jBlGSxeMmBnStzvvYMKG98EUNRDW8bGtMjGJlbi3JkQzGeN3ADSSSe564oJUTs7C9MRlw8/qGE13+Jg+aDJTeDEacgxcD5D8Kgpj/kwH4ZtaSISOChJPEFaEXI9SF9ZPw55TSv2Tt2sqSgs8aIRXY/xbEGqHw4dvyQV5rkcEGPW6MTJ5L1gTA3rDj282GI2sHWY/VSm9Vgs1ShORH3wd5LoB8= X-Microsoft-Exchange-Diagnostics: 1;AM4PR0801MB2724;20:MM3XXpfO8lzMABAYqohzX1FF87ri4Z/K1K++Y2DwMfzToqj69zV0U4cU9tiv/UyNcpSmtpB4AlG05sKnfgInuXt+5GAcf1x7nKQKynOcXIQOiigyfhNpqz35pvzzyxSPkRjtTXFmwCLH02T0pyHxaLSbY68Ic3MGQCCRrXiv+4A= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2017 15:54:30.7494 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0801MB2724 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2103 Lines: 60 On 06/30/2017 04:00 PM, Thomas Gleixner wrote: > On Fri, 30 Jun 2017, Andrey Ryabinin wrote: >> On 06/30/2017 01:15 PM, Thomas Gleixner wrote: >>> On Fri, 30 Jun 2017, Michal Hocko wrote: >>>> So I like this simplification a lot! Even if we can get rid of the >>>> stop_machine eventually this patch would be an improvement. A short >>>> comment on why the per-cpu semaphore over the regular one is better >>>> would be nice. >>> >>> Yes, will add one. >>> >>> The main point is that the current locking construct is evading lockdep due >>> to the ability to support recursive locking, which I did not observe so >>> far. >>> >> >> Like this? > > Cute..... > >> [ 131.023034] Call Trace: >> [ 131.023034] dump_stack+0x85/0xc7 >> [ 131.023034] __lock_acquire+0x1747/0x17a0 >> [ 131.023034] ? lru_add_drain_all+0x3d/0x190 >> [ 131.023034] ? __mutex_lock+0x218/0x940 >> [ 131.023034] ? trace_hardirqs_on+0xd/0x10 >> [ 131.023034] lock_acquire+0x103/0x200 >> [ 131.023034] ? lock_acquire+0x103/0x200 >> [ 131.023034] ? lru_add_drain_all+0x42/0x190 >> [ 131.023034] cpus_read_lock+0x3d/0x80 >> [ 131.023034] ? lru_add_drain_all+0x42/0x190 >> [ 131.023034] lru_add_drain_all+0x42/0x190 >> [ 131.023034] __offline_pages.constprop.25+0x5de/0x870 >> [ 131.023034] offline_pages+0xc/0x10 >> [ 131.023034] memory_subsys_offline+0x43/0x70 >> [ 131.023034] device_offline+0x83/0xb0 >> [ 131.023034] store_mem_state+0xdb/0xe0 >> [ 131.023034] dev_attr_store+0x13/0x20 >> [ 131.023034] sysfs_kf_write+0x40/0x50 >> [ 131.023034] kernfs_fop_write+0x130/0x1b0 >> [ 131.023034] __vfs_write+0x23/0x130 >> [ 131.023034] ? rcu_read_lock_sched_held+0x6d/0x80 >> [ 131.023034] ? rcu_sync_lockdep_assert+0x2a/0x50 >> [ 131.023034] ? __sb_start_write+0xd4/0x1c0 >> [ 131.023034] ? vfs_write+0x1a8/0x1d0 >> [ 131.023034] vfs_write+0xc8/0x1d0 >> [ 131.023034] SyS_write+0x44/0xa0 > > Why didn't trigger that here? Bah, I should have become suspicious due to > not seeing a splat .... > > The patch below should cure that. > FWIW, it works for me. > Thanks, > > tglx >