Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2574267pxu; Mon, 7 Dec 2020 09:52:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFF/dNcSh8pSrizL/rbZa7/Z1oQAvE3JzOKYWrbGEvtZ26u9v5kc8k2TSh9NoPaaZRuOlO X-Received: by 2002:aa7:db59:: with SMTP id n25mr19369741edt.203.1607363539529; Mon, 07 Dec 2020 09:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607363539; cv=none; d=google.com; s=arc-20160816; b=fcO5JWftFTXvV6nM+ogotIjS8G+h86M2fpY11O8gXUxJy1LA48GMxkwY/w6saQcP7A kewuofXVZ3RGcIaP3eSReLWERWGNEzcK/nmhosU7B6zOTav+2zS1zo8YwK+sq8b4aLxX jKBWNQgSsXcl64S07pHHbs1kc8lf0svR0x3O9w49AM9zXy+1GSrnPk/oNhc4Tg+pDNmV FJuMftzPY5NWX2nhCZHZcUhR1Yf3cEqOBAwKokFSSIbPXhlxHpWiB48rs36g5kFeFiBo Ff8PM70dhOvhkrVPcDTDl4/+RJe5xWJURkmhue8VfuRW0bRXa4IAPsGP6U1wYpa8qkXz C6vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=afDC03InAXZsSNwfef2vWGfi5DTW9+sgf5g7C6+1NsA=; b=BnwXESrWj6Rh5y6R1PVWFMuO1t/Vzr8adt9whDum0GiQFILulLLI5wUBAKTNmP5lLx kWVnnjlNVkKNf2245PsyoiqYSR1BO/eLIj8+aEvEeHBnZUvfwsncQQECn52+iCiH5m0K BXy56ACaw5o6OD8ZiNHZao3nEYnL2nEEY4yyv1jfvu6r3l3IspPtFSk7g1RqTzrgOehP sifYXfFbZx1dS+2PNt9aiyiCHBJdl11AqFErhqDBwZp3IId7+zK1xJjpFr6rVsANTAQh Gm7K45Vte64IduHO9Vk0gYEB5d5Gdr1HMbcmacw2NOe1vOA2fX65+zh089/jsWgZhLGc /JMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OVGEyYBn; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=LVuezxMd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si6756554ejo.390.2020.12.07.09.51.55; Mon, 07 Dec 2020 09:52:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OVGEyYBn; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=LVuezxMd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbgLGRra (ORCPT + 99 others); Mon, 7 Dec 2020 12:47:30 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:38020 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbgLGRr3 (ORCPT ); Mon, 7 Dec 2020 12:47:29 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607363208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=afDC03InAXZsSNwfef2vWGfi5DTW9+sgf5g7C6+1NsA=; b=OVGEyYBnrdqJ3N9sFPwlQrVzeJHhVqcqrNQs0QQcb/zYkPL75uFBdNWMvCSf0aHat5BQ+2 WS+sgSAbDcFNFRDd2QVF73wORuMfErYzzzNR2qpn388m7r3qHzYrQAePHAjA4tDMz/Q1rV Hr6NZmQQnXcroCax9DkDjOH1SjBcWD3N4rOxDMy/oGzGE9C+eWVcHcXIxeC6Z1k3dZptYA D3Moctk8j+C1ecigV1sM46jO9+I7cJvRb4G8gaoAIZMyNRG34jzSmQCKMWuK91vM4KxIV4 G/k4jubAGTeT6OZGV6AzwZL17w+Om50zQ33bu7ckB+W6FLW22Ge/9QfySJ57xA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607363208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=afDC03InAXZsSNwfef2vWGfi5DTW9+sgf5g7C6+1NsA=; b=LVuezxMdPq/58zrhUDFJlNPYpS7Q4X5cB8etMiMenYAdqOJyFmfYqCSr3bd39bQzH1pEBa iLbmIai15q1357CQ== To: Peter Zijlstra Cc: LKML , Marco Elver , kasan-dev , "Paul E. McKenney" , Ingo Molnar , Frederic Weisbecker , Will Deacon , Naresh Kamboju , syzbot+23a256029191772c2f02@syzkaller.appspotmail.com, syzbot+56078ac0b9071335a745@syzkaller.appspotmail.com, syzbot+867130cb240c41f15164@syzkaller.appspotmail.com Subject: Re: [patch 3/3] tick: Annotate tick_do_timer_cpu data races In-Reply-To: <20201207120943.GS3021@hirez.programming.kicks-ass.net> References: <20201206211253.919834182@linutronix.de> <20201206212002.876987748@linutronix.de> <20201207120943.GS3021@hirez.programming.kicks-ass.net> Date: Mon, 07 Dec 2020 18:46:47 +0100 Message-ID: <87y2i94igo.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07 2020 at 13:09, Peter Zijlstra wrote: > On Sun, Dec 06, 2020 at 10:12:56PM +0100, Thomas Gleixner wrote: >> + if (data_race(tick_do_timer_cpu) == TICK_DO_TIMER_BOOT) { > > I prefer the form: > > if (data_race(tick_do_timer_cpu == TICK_DO_TIMER_BOOT)) { > > But there doesn't yet seem to be sufficient data_race() usage in the > kernel to see which of the forms is preferred. Do we want to bike-shed > this now and document the outcome somewhere? Yes please before we get a gazillion of patches changing half of them half a year from now. Thanks, tglx