Received: by 10.192.165.148 with SMTP id m20csp2310137imm; Thu, 26 Apr 2018 08:58:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx48RFQu58RU2Kj4J2ylfiy1Q84WzThw9uMkEwDSitrOHmhPao3nmgHxT2TXisQ+Y4mal1tLL X-Received: by 10.98.61.201 with SMTP id x70mr32600807pfj.85.1524758312688; Thu, 26 Apr 2018 08:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524758312; cv=none; d=google.com; s=arc-20160816; b=QwsSXcDiMkKiQWp7VL+0R72LhBCEpl7kRy5x+vmjmX0Sl4CTuMLoBABMqAjuPgP898 tJhlxO8ms8trvrGfIwXPwB8NNAMRODx+QJPmHOZeifzdqP1Cx8zpZGzXJL5vs+Rgon3h h3c31vVN9TyQAignPcb0ICsvTa41aSRUXUAaq7Qk007HRTqdWtFwX5znLkDAUrwA5qtP 8pkpI+4zr94YAoD2c+67mHOMII9BRmgklgIXOye91aWNg626FTL7O/NU8rlfgpAdWgoY pbrpTqPp7sS3nTV7vvRdAqT5ghZhuyMePWt0KFNo/efWddMVyxkzMsOWVBNIS4+HrJXR fFYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=ULQqt5CAfoilUjEMq/esJGT0QodIwhhIKHCRqFgejCg=; b=wHm12Cnc4A9hEnETQc7LZlDIs0gIr2omYLitftLjAQygBsEjPIByncgjv4LIWDJqux 27PtW6+GY0e1T3iEBLYEqm6AmSDQct8qdmr5NGpmTCr2coQQBMD//zJ7WwBXb1qQxKMc Tl6nUos50yepHkORVBYFzogGW6v8fNmF6kw3QNhrT4FjTsivevJBSwjxtOKnKVbOriy8 Xa6xJJnVvgDv8fGQj4Gj/rbT724o7SXRs+FX63Pfq+A14pRBzYSDO+7gEa6LOvp/U4MF K7/Zp52h9U5PENhnt7j4rNQ6kabdFldhno0Y8QfOG7y9eCAWKPKrNYvjJ61NaigGDOeo A6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=TuHGxECi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si16258136pgc.261.2018.04.26.08.58.18; Thu, 26 Apr 2018 08:58:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=TuHGxECi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756760AbeDZP5I (ORCPT + 99 others); Thu, 26 Apr 2018 11:57:08 -0400 Received: from mail-ve1eur01on0101.outbound.protection.outlook.com ([104.47.1.101]:5709 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753207AbeDZP5G (ORCPT ); Thu, 26 Apr 2018 11:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ULQqt5CAfoilUjEMq/esJGT0QodIwhhIKHCRqFgejCg=; b=TuHGxECiNyO64OAyytuKX2XS0E3DgIJCwJ33KnHVvWwYynu8AH3mMvheL3wim/+g9B0Gz5QodnFE9tTDlA71ncS4ubIgXzvUV/F+NwKzC3xg3cL6liP5FfI8YWOcDZHpQN8wckjfdvj2VhSWVFopz7P1S08aTNbklpzXG8Aqq10= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from [172.16.45.234] (195.214.232.6) by VI1PR0801MB1344.eurprd08.prod.outlook.com (2603:10a6:800:3b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Thu, 26 Apr 2018 15:56:59 +0000 Subject: Re: [PATCH 4/4] exit: Lockless iteration over task list in mm_update_next_owner() To: Peter Zijlstra Cc: Andrea Parri , akpm@linux-foundation.org, oleg@redhat.com, viro@zeniv.linux.org.uk, mingo@kernel.org, paulmck@linux.vnet.ibm.com, keescook@chromium.org, riel@redhat.com, mhocko@suse.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, marcos.souza.org@gmail.com, hoeun.ryu@gmail.com, pasha.tatashin@oracle.com, gs051095@gmail.com, ebiederm@xmission.com, dhowells@redhat.com, rppt@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Alan Stern , Will Deacon , Boqun Feng References: <152473763015.29458.1131542311542381803.stgit@localhost.localdomain> <152474046779.29458.5294808258041953930.stgit@localhost.localdomain> <20180426123542.GA819@andrea> <20180426152000.GB4082@hirez.programming.kicks-ass.net> From: Kirill Tkhai Message-ID: <1d7c0dd6-22d8-89ea-15cc-bc3d46024bbd@virtuozzo.com> Date: Thu, 26 Apr 2018 18:56:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180426152000.GB4082@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1P192CA0018.EURP192.PROD.OUTLOOK.COM (2603:10a6:3:fe::28) To VI1PR0801MB1344.eurprd08.prod.outlook.com (2603:10a6:800:3b::8) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0801MB1344; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB1344;3:sbWzYR0JoHxdLyVKJZHc8YBmzkHcIncgPSm1s7+umuthVe894Oh2pJKnXXijtniTEHGWd+HvtGdPdcQiVO30priw4jG+9HtrGAA6GkHD0y4uxil2FijyX7oVxj8h5FaYfGVIWaNK0uTcrc2aqik2vKdPUsanezDayDwpk3TPRhRT0TxKJ6bIgD86RFSjRNdmJ29AOPD5O4HgdSVOK++ITGImjmNH52oTi3cVQiX7W7mwwMLRxnC4qJ86unnHVF4e;25:LPoc/Mm8FPE/r3BSl1og/03Pp0IR/oybb28l6ziH5cLT24t1nuxsJrgrmriJWFzNVAgUmh3ZVftGERC+IGbvxU4lakELHrMNh9k6g62uOXAh9T3PhIq8qa5RnYIspOnxCTyPgXF40Wk9GhBRRpjQZzDct2JijgblYrLoqh5UyJ4Lqj3euxtjlZXM0cFZrLIl/SWf+038QZUtEUVLqhqBARA2es5ml1+QO3dqZMj0fXWgDhcve0tx9YSi9TbUvOk+u+o0VMAnwmTiGnF0k3O1f50jbhlRjyd10rr4Qd96rmn/4GFJa4sa5OLmEI2lkoC/9+5suX+IihnZho5MXnAOWw==;31:ChF88s/S42C9I+o9Ciz+cNAoTyZpRgS3kKA8ARAwSyUQgoh8gHKF2qtY/vL2eMwczym2ivwv5gwXr/QWPxqEyPfVfFUecLlu52BqwhgS/GNx+ExIEdGEWUD/nXFkbudqZuS10lvGNCT2ae1RJqA+Vd3LG3E1mM6oX5jvrh7pEFgVjM3r+N6QliRnxqjHCWKK7ztxuGqTF5kV7x+g8++zln8EM7W5auxviZBaPX4KXsk= X-MS-TrafficTypeDiagnostic: VI1PR0801MB1344: X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB1344;20:PpeoDMCYjrkCgO3z1way0urb1zkUZxviXPQLvdVoOtFTW14lQBGAL7SRam5Kw1p7xIxBjGJApXfZmxDO70lght9rWUwBfIypG0BddGjTd2jJtHcTY5VC39ly8tKrd7M8jbu27q6CQ/yAdsPY3BVCNRVxBAln6uOk/KEDfX+NQV6+hUTsXuccFaAm2ePf5caDgxxgYywDa38kcJXhljd1ia4icjEm0srHdJcN00Pzs2UfSEy2M9A/VLqJHkk55c5rZONJlbV5E1Xgkg7AZoaWu7hjjit/3e6+YDMSMPlwbb1ebGAmkuH2wA2HlJ+026nb05evfEl0anRdvgfhXipdjEnbylIRuMyq3+3M7gQD4BDuau69QXEA77PmN44XB12jJlI2KWjNPcYr5EUaaP5AUhY9Y/y8CJN9S/5SPb2MT3Mz/dSgTWgFX5acaWyo0T/myHbq5Nye/9i3/Wn3G2XFeKs48MNoi6vhUywGseO64ldjhfOPJrrIU+bxENusYgkK;4:xA+ycuqdDokMB6F3o50YglucynT9YA6Rtz1qlygpaHFrAWDqtmnv+YdWkVlhwYFYV91d+ls24sezB6A4seKDA/ROhQKG0KoU/wFfLES+zYsgAfgPwhA8FDXY/cHJt96avUq11nRhe0YDzrjLaW+O4QrISMX+/u3Q6nMDm7TYowvTj6s++ovrdhyYXjhOqzV1ZLwAAxkqMhrI8lcj0s/G9Crjj7Kf0l98ezIGsJXeffDdm1pmvYwnZqvw2u0LqsPetl69UApOmCz83a6l8aE/4Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:VI1PR0801MB1344;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0801MB1344; X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(376002)(39380400002)(366004)(39850400004)(396003)(346002)(189003)(199004)(478600001)(2906002)(64126003)(31686004)(86362001)(81156014)(305945005)(7736002)(81166006)(229853002)(55236004)(11346002)(16576012)(106356001)(6486002)(476003)(2616005)(956004)(8936002)(53546011)(68736007)(386003)(31696002)(58126008)(105586002)(36756003)(59450400001)(47776003)(50466002)(486006)(446003)(54906003)(65806001)(77096007)(52116002)(25786009)(52146003)(93886005)(5660300001)(230700001)(23676004)(6916009)(26005)(2486003)(39060400002)(8676002)(6246003)(316002)(76176011)(186003)(16526019)(66066001)(4326008)(6116002)(3846002)(6666003)(65956001)(7416002)(97736004)(65826007)(53936002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0801MB1344;H:[172.16.45.234];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjEzNDQ7MjM6dEZJQ2E2YTBKOWYzdDNVQUJBSFpLZE1L?= =?utf-8?B?aFhPRUI0MmVIUHNWSmg5bTNwT0h3MG5GbW5qY3U3bGxFWG00d011ckpVekF4?= =?utf-8?B?RFZ2dHV6andPaW5GY21KVytpdWhhZHVUanprbkFxckdOeXhaZzZJSXVjUWN1?= =?utf-8?B?bTEvU0pSUmlweUtiNERKUWxvNk0zU0JqNFQwWGh2Y3VBN0xKc2MwbXRRTjhS?= =?utf-8?B?c0h0T081aUtSNTdOY3BGMDZUUU9TZHdhMmE5ajFiTUs1ODNRVmphR1k0dXNm?= =?utf-8?B?WEdqWVI4ZU5mNkZ5ajJRdkVTY2IyRzE4RXpDWVVoUGFBOTRsMEYwaWhlN1do?= =?utf-8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J/hgKVIT1GUWkjt2TjSSQJ67QVhUFn60lMCnaCJ1/jUpSNO/CKLDT3Pat5FP+iHxEJM7gohGteBw3ati/90fYJNASoifEI/hqyYXskiEsaUumDEC1R9mf0BfjZV+xa87hEZ41w1HM2XqKY9TjidYGet0a+ibTnOk5AG6b5Ffsn7lsp95qzg4v+oyLDSlRGN9Cjc4Hu2hHJd95QQopXYHFO/l3YtrFVVhtMiGwNwHd/EbO0mmRof;20:b00Ftr55eOi2Ehu6dCYtOZJM7RH26ZdZVlyEnN6RDDPTxfg6TRUr2sS1QQR7R8ihyXKGrTQz3UgXJ9T0brdvwmTngbyEQzeG7wJI6P8V7+ya9mJaztkVoOtjKU91cv7izbc3a71/VDiiSrJMH5BoHg7OXa3aNCFHdUwBOhe97c8= X-MS-Office365-Filtering-Correlation-Id: 2829d981-1031-466f-c51b-08d5ab8e5944 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 15:56:59.3082 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2829d981-1031-466f-c51b-08d5ab8e5944 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1344 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.04.2018 18:20, Peter Zijlstra wrote: > On Thu, Apr 26, 2018 at 04:52:39PM +0300, Kirill Tkhai wrote: >> In the patch I used the logic, that the below code: >> >> x = A; >> spin_lock(); >> spin_unlock(); >> spin_lock(); >> spin_unlock(); >> y = B; >> >> cannot reorder much than: >> >> spin_lock(); >> x = A; <- this can't become visible later, that spin_unlock() >> spin_unlock(); >> spin_lock(); >> y = B; <- this can't become visible earlier, than spin_lock() >> spin_unlock(); >> >> Is there a problem? > > The two stores will be ordered, but only at the strength of an > smp_wmb(). The above construct does not imply smp_mb(). The difference > is observable on real hardware (Power). Ah, thanks. But hopefully, smp_rmb() should be enough here.