Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3239376pxu; Tue, 8 Dec 2020 07:07:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJza40HtMrT3SwqAyPMdDmo1LznQIkERjqoILSMVtK6bXBsv7/yjnPYAtISvOoLQ007Dvy6l X-Received: by 2002:a17:906:3a84:: with SMTP id y4mr23636807ejd.425.1607440020016; Tue, 08 Dec 2020 07:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607440020; cv=none; d=google.com; s=arc-20160816; b=efLFCSCvTiVyRqJ1IZqXveGDcYfiRbFGVWLQvQyRPoAU8/Q5pdkOuAQ/Woxuh7nT8b 0OOdJhke2N6hn51TIrBvXAeG1wk762CKykG6DKAtJdq3WdIVNOb3+mtHmvwU0G8AxXLm MGtW8NqKN8fIKmMVVaLZjFJ/m9hiLFUS6+fzQN3NeOpQF6SPQta03RqD6K/hhdVxjZe0 gbuCnPgihSDI9rYiejde2p3udPzjq6U+QrWIVxp00lq5Gj+O3mzevE1v2w7iDG1oJaU/ WQ7l0C7R1LDVHy9vOiAMl8GQ7CEFMbzoVmeDCLAV6+O/GHDKSqaouIgpRHkxV26w+jxl i7Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from :dkim-signature:date; bh=JwyCpsBsEnh7msJOt6yTA5sxP39thxwaPr7/7mqjlss=; b=e6HEb9t61A8tY+rhXyxlczwTB81rr6lpXzcq1AmKVcmBhomNXU0FSBIMrxmbLnGYr/ LFs25ntTf7itf7Al6fEHc+sMvpVtVBdjAUi2VSUkW4cL4FOc8eOs4qxwiecm3zdWQOm0 sky+2n2bJinB0UoPtx/uZJ6mSdqGDFduiJGAj+KlFy9DO/wWl6mwfxvNnzymd8GijXDv lkAVtJEV85I4foFzel+lnkwCwUQ4R5m5JNGnfhaRC+H1Oh4zXYg4jWOOnxbS7z8dGd7D lPmGtEoVnb/4HcjHdr9OCoptV05DH5r4jZHuVFLioELF7BzSq5XUJ2MXLCoNXvPNUDEQ DlRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aeauVlPd; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si11272180edn.361.2020.12.08.07.06.35; Tue, 08 Dec 2020 07:07:00 -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=@kernel.org header.s=k20201202 header.b=aeauVlPd; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730041AbgLHPD7 (ORCPT + 99 others); Tue, 8 Dec 2020 10:03:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:60416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729963AbgLHPD7 (ORCPT ); Tue, 8 Dec 2020 10:03:59 -0500 Date: Tue, 8 Dec 2020 07:03:09 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607439789; bh=or1DcCapyMZAKhkw6/vP2TDxE1YfQnLkxL6zq42F2js=; h=From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=aeauVlPdyqN7Wev4D/DKw8dA5uKQphqz58QLydTXHAAW40ucaXta5MhCDVQMm/ZNN EbCQ7avmA+j5nl2K2z8Cbh1PftPqaxW4yYzel3EO7IpZWQ1aaZ6r6sZxQiwznHcFdx kciyO1GDch/6fW6IJE3QjJ9mYPKWCkphPQl586eBEIOb+s8+5C4wxEN3gePy+9Qo8X ZqCGt6KlTaKSG+v1WpQSrWYWeXRbCMxwWPH8c3DyUQyKe2eoDkUqrtrWn53WOvOHxU 6tgGTK/C8SQSv8NNy65P/j7kCRXqlUAHxkBzaxhIrLQC7tky374Rg9RyQWhcl8o6UE ++KeByZtXs43Q== From: "Paul E. McKenney" To: Peter Zijlstra Cc: Marco Elver , Thomas Gleixner , LKML , kasan-dev , 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 Message-ID: <20201208150309.GP2657@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20201206211253.919834182@linutronix.de> <20201206212002.876987748@linutronix.de> <20201207120943.GS3021@hirez.programming.kicks-ass.net> <87y2i94igo.fsf@nanos.tec.linutronix.de> <20201207194406.GK2657@paulmck-ThinkPad-P72> <20201208081129.GQ2414@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201208081129.GQ2414@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 08, 2020 at 09:11:29AM +0100, Peter Zijlstra wrote: > On Mon, Dec 07, 2020 at 11:44:06AM -0800, Paul E. McKenney wrote: > > > Also, in this particular case, why data_race() rather than READ_ONCE()? > > Do we really expect the compiler to be able to optimize this case > > significantly without READ_ONCE()? > > It's about intent and how the code reads. READ_ONCE() is something > completely different from data_race(). data_race() is correct here. Why? Thanx, Paul