Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3969555ybl; Mon, 3 Feb 2020 09:59:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwKAput3KFmBugI5KQ47drR6laiGBMq3bRqOfQUF09BxlHvOiW7nQfIkyzCFqkw2j148CUq X-Received: by 2002:a9d:7590:: with SMTP id s16mr17478502otk.89.1580752776745; Mon, 03 Feb 2020 09:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580752776; cv=none; d=google.com; s=arc-20160816; b=DjoJNtMRLqAwoI62tCoxXSQh3P5JaMxdu9crEa/b9mm0M8VSrsqZDzJJONl6HQLuqM 9e1BFaRp9EtShG647Hw368gDG8F6oQ20lwgtJK16eMtPs08xSHCFSCytC09enZNTunMd 4CvJ+WN9GMVqXI/j2nuAZQkl112ynOExakNQWzAQaF4zvgwiKvsEsMxVnaphOC1KF7AD OW1Ny5D/NdEuXlqG2N7K8z+U6AtwNSoDRKEdyFyLP3l43RK7Zq9cIwN+elS2r5b7pHBs hfQsbHaCvXo8vckkM4KwmVa35gClwL8DZhBnHbN324SkoEEpXnOUOQ8hkx8cj50SvQze XdAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dgf71URhUKo2b+JGoC+JLVlsL/X5hBwyfojNmfsCYOE=; b=Dat93OsloUAQZKuvtQALbKjBDxi2IJqBNz+qZ1qmXyiRCYm6JvJF3BglbxuAYmiSyh glaMCiivJo5zV11FeGcpeeznuQMb0hZ1YWQVqUFVauba8udb19XYC4BWUP+ks/8HbBxD JATnKwdtxrh5gudBfgrE8pwnR1q4wJT1epE17t7V89xEuekqgcq0XXt3qQjjt74u32To XR5DE8ohd/i6XFT55poogtELDobWUYXAKEQ9C/cc5D+GwyUfGFUOH6aKM0rzkesTwKmu Mbvz0mBzazP5iophWRkcYG9R0CmswGcN29hQY+/I0d1e1yzlU0+TG//HlGyvAtFiiNHO MJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Yo3ATNA0; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si9676733otm.221.2020.02.03.09.59.24; Mon, 03 Feb 2020 09:59:36 -0800 (PST) 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=@google.com header.s=20161025 header.b=Yo3ATNA0; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbgBCPzB (ORCPT + 99 others); Mon, 3 Feb 2020 10:55:01 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:45377 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbgBCPy7 (ORCPT ); Mon, 3 Feb 2020 10:54:59 -0500 Received: by mail-oi1-f196.google.com with SMTP id v19so15165385oic.12 for ; Mon, 03 Feb 2020 07:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dgf71URhUKo2b+JGoC+JLVlsL/X5hBwyfojNmfsCYOE=; b=Yo3ATNA0fsuI7QjC1JZ3Q3rmuAp3lsDLGlP3bTGe1BG3puDi0Ccm+P4BpEHT3x7i+Y cmrF/ZvZM/7FcMIsG7h1eYOeEart4fDBof2CUozfgJCz0ObpEG8s6LjrtOsPoYNswGXO KbPumgE2Qgz23VpgAm2UkqgHdwFM5Z9Vy/M+6f9i5ogcOweFv2DwvZtc+1SgdVcgkroz C+uv/h6aKSs4J3cj9DVUEbfctPkIV4634t+3DZ2AGh1whCe5/WXE7qwwOMCqACSoB5C9 XxjAd3tjalgrtDXmItBSa5njGkbRf8aijyhurnAV8KW7gJAV59sEZJPMCjpFUUXfXw93 9J4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dgf71URhUKo2b+JGoC+JLVlsL/X5hBwyfojNmfsCYOE=; b=uPndRMm6FNkDi/l7jZr3XBKqEqP1StMZFFv54GiBUbhrKbB9VXHe9eZwgOvA8fQgXr UuraByUechxAjOAm2XiAZ6OQVDWQINdjP0YGUo3YZDCZ4g/EvVCJ1WkMISUoohEwC6YQ 8FcfKDXWWV/PjurVj79PG4I8gYVSFixOtuhcPBecc/FBEt8D/fQCkXZG1bhorxoyJz0i SVg5GvDlko5PS1OuASIgJ5+emYhx4NPB7WPcn7Y4cOxJVYWZoAvzFbEXDvuAvmosaF1B MAt1rvZlvumdiWXPARVXEKmn/P14wT5fo6ydLDkyk7Ly601X0VFzkGPucRF5IhnE0gXW lQ9A== X-Gm-Message-State: APjAAAW7eJLYLvWoPOoB16cxnrCqYHETbm3kP2HIysbakbwoCjnQ3VlM qw3pfz81ojcNafG/UqeL7O1GFxfHSlbkrhPM1rBnXw== X-Received: by 2002:aca:b183:: with SMTP id a125mr15332483oif.83.1580745298563; Mon, 03 Feb 2020 07:54:58 -0800 (PST) MIME-Version: 1.0 References: <20200131164308.GA5175@willie-the-truck> <20200131184322.GA11457@worktop.programming.kicks-ass.net> <26258e70c35e4c108173a27317e64a0b@AcuMS.aculab.com> In-Reply-To: <26258e70c35e4c108173a27317e64a0b@AcuMS.aculab.com> From: Marco Elver Date: Mon, 3 Feb 2020 16:54:47 +0100 Message-ID: Subject: Re: Confused about hlist_unhashed_lockless() To: David Laight Cc: Eric Dumazet , Peter Zijlstra , Will Deacon , Thomas Gleixner , "Paul E. McKenney" , "the arch/x86 maintainers" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Feb 2020 at 16:45, David Laight wrote: > > From: Eric Dumazet > > Sent: 31 January 2020 18:53 > > > > On Fri, Jan 31, 2020 at 10:48 AM Eric Dumazet wrote: > > > > > > > > This is nice, now with have data_race() > > > > > > Remember these patches were sent 2 months ago, at a time we were > > > trying to sort out things. > > > > > > data_race() was merged a few days ago. > > > > Well, actually data_race() is not there yet anyway. > > Shouldn't it be NO_DATA_RACE() ?? Various options were considered, and based on feedback from Linus, decided 'data_race(..)' is the best option: https://lore.kernel.org/linux-fsdevel/CAHk-=wg5CkOEF8DTez1Qu0XTEFw_oHhxN98bDnFqbY7HL5AB2g@mail.gmail.com/ It's meant to be as unobtrusive as possible, and an all-caps macro was ruled out. Second, the "NO_" prefix would be incorrect, since it'd be the opposite of what it is. The macro is meant to document and mark a deliberate data race. Thanks, -- Marco