Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp106911lqp; Tue, 11 Jun 2024 16:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFVtfWKqqyVc5JvQDE4ViKSlhZWL1eaZz3VcE5rwhB57DjCysFm7iAYtwf76nee+w7EtaGmBal7h5/ayYCPxXMhF9ju5VObW2EaSF26w== X-Google-Smtp-Source: AGHT+IEI7siow2Rp4QGYK1AYK5gJtkHWqa6gxf/UypTq/+bvbjg/jFzu1Kd194rOpR4iWWue10g8 X-Received: by 2002:a17:906:8411:b0:a6e:f701:384d with SMTP id a640c23a62f3a-a6f47c9ef68mr8443266b.29.1718149760696; Tue, 11 Jun 2024 16:49:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718149760; cv=pass; d=google.com; s=arc-20160816; b=pez0KW8PEh6frBOOVb/Ggwqp1WtLWXVIcFduYXZgJsv3IuhJz1b2XKODSlfA4ytoP2 Y2XiWb3eP/vrKKt9RqMAKPHR5U2LCJqu7xH7fo0nt/PZ04ogq1U6NHpZMDUf0IgFG7pf jILI9yWuKu1Ky1ZFXfGUzY6+3LIE8cEWqBwAgAR6Vgtq+t5ZepqrRM/q5lST6t9x9Hyp Tug1YDKUO4I0HRf7nFw8lBkqzAtKB4Zdool4uYnbfySCLJ2fBBsjalXPaPwDgbSPSNol GrH6VJAn8hDdB2FIW7f7vbC4p6YM0RnPXVDnfuLkJOiomKnDgv7aau+dihI3d2gRAx/w SPDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=EqkLHEUnRpx3bEdLAK1LvE4jsudBYwa4x2JWr8tT2p8=; fh=0zcxSUdujNIRA5J+PlJX3GgdRXZCPbJkgQ1nY4QXNMg=; b=CCl3zioFQNChOrG6d6v3jJwYk45ItL4DaJ7G9JtUnC+hZiyA9KvTSxkihWDjqzoJyz hOA2MJEr3dGORoiR3yDTMFX29b9LcoUx0c/7NvvwPxS+eNgBFWxZLmy9Df6N9NNyfHxO A8no7yMqhjZZTkWYXNKQEvqUYyjzmH9nBZbVxvwHRrHbyggdWxRxzL85xtprqWlC5958 VYYNm62Of75sYvucj894KJY06QDFTiXLBTpnXL8QK1WJCZIUK3FyucXfSk3lr4XdXdre wY4OargvonAaY2YxzrRUv0SnDPMePxH7L6zt1P3x0m/CRW5ilkxN78GJFUE+OQOd67Lw VV7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="T/oJx7Xh"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210710-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f1b555795si274323566b.887.2024.06.11.16.49.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 16:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="T/oJx7Xh"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210710-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 426111F223B2 for ; Tue, 11 Jun 2024 23:49:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E86FD156228; Tue, 11 Jun 2024 23:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="T/oJx7Xh" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBCE04502B for ; Tue, 11 Jun 2024 23:49:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718149753; cv=none; b=Jgm3WQbQR5/JirIwYiwt3NiG0dH74lPKdVftCjhE4U0t6a/L/lN9DzNIIO+GgoiGIVayxp/bucRP5KqU2pTMsBJQqwIKXr1fdz6s34/JY8R5WpIB6osbTtDXV7T6/uWv98E2sIqkixeZ58V2QGWVB0xfIBNvIYZ8fKGG0pcX4H4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718149753; c=relaxed/simple; bh=MfCuiDlGE5fVIpNHzQbptf92l3+tLlaspIehN8mGxu8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fIaXsGCOlQu8VVeULLdP8KmSH9ZByBNeg2p1cCMOrTfRyjNBJIoPnboW21alzDUG/uAwE/EY254cGcTBSRBLyGqziGODtEIePYUDH1GaPaj+JpDgWwNgCAJKHFcnzXGJXeGBJCIwRs4ufXoP0VX6/+61/wiSX65D7STt4vgaa3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=T/oJx7Xh; arc=none smtp.client-ip=209.85.208.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2ebed33cbaeso18099611fa.1 for ; Tue, 11 Jun 2024 16:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1718149750; x=1718754550; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EqkLHEUnRpx3bEdLAK1LvE4jsudBYwa4x2JWr8tT2p8=; b=T/oJx7XhoEM/HKIfCJb5/bpEH9dGAEXjJNJQbaNCHNiwtV9ooumbQtitNUDoKHVTIH Up/0vJf4Q7LWVFl67B/tJIN20A74qHe4iIsP72Y2eF7BTkf9FeGAIi+/S9RHSs0cdMyG 4I3pKIVQ/3O441/DZ1q4tklJW22WhQ6Z+BEvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718149750; x=1718754550; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EqkLHEUnRpx3bEdLAK1LvE4jsudBYwa4x2JWr8tT2p8=; b=oLULJRHeAj6BpItyzTVrybwD5jz0KCj8GdbwYlNeFE+jQWkVxIuZSMNt5EzNu2jCTc 3yeUxh7daGKkrS0/S8sJlFTmsVTmJKmszMeebFkZAxApnQ3dOU520Jc5dLL4hXCjgJbk kVXiRv7GNYmSce4JQuaAcIZLq/ABLahVbzFyeQ3W8LrGSC6cEb4l2nO1GPKwHDVnKWOe uRHIuL8J4LWR9KnCg+8Y4ps1NzyFXd9uZ+5Y3NBa2NNLbvCvk95kVmmdnTJV8poRt3v7 T0rcbsel/lp+D7++lAks39TeumQyo7YI0s/kmwzE3osRLn+mVYE2nqgfCd1PnOO0TdRm Kw+A== X-Forwarded-Encrypted: i=1; AJvYcCWCQzSPK3sMOUtrDok/nupLgfpC2X7AxHVren4ZeJqAfZ3cdtzdG9TFlTHClUlzHhPhvWZtjFZmp18+7HWUytDx/1vDoi1mqoGV13IO X-Gm-Message-State: AOJu0YzB7OxlvNrxDbST8yP9nmX7t2ndRLLSEUOLY2ye1HXLBk9fXaxL hfZHPCL1RenfjRwncSNb8tnF5ZfmYAFu28gG+qe5kY1LCycg4ZRfz/b/3lSqfHY9LG5eX25vQ05 upk7agGKt X-Received: by 2002:a2e:300d:0:b0:2eb:e365:f187 with SMTP id 38308e7fff4ca-2ebfc9bbf37mr987361fa.6.1718149749710; Tue, 11 Jun 2024 16:49:09 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ebfb5cc4b6sm882141fa.16.2024.06.11.16.49.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 16:49:08 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2ebec2f11b7so16264841fa.2 for ; Tue, 11 Jun 2024 16:49:08 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXWzrj/xAif6vQX/1GPvSuMZeGBRQJdROyH5wm7MuvkeFSg5R0d3tkVZsMlwMTLPengs8k/BH5sf2OpCnxVVP1idbARGdmGahDsNdKS X-Received: by 2002:a05:6512:3a87:b0:52c:94c9:a403 with SMTP id 2adb3069b0e04-52c9a3b9889mr116248e87.13.1718149747613; Tue, 11 Jun 2024 16:49:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240603211538.289765-1-andriy.shevchenko@linux.intel.com> <87tti9cfry.fsf@intel.com> In-Reply-To: From: Linus Torvalds Date: Tue, 11 Jun 2024 16:48:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/1] treewide: Align match_string() with sysfs_match_string() To: Yury Norov Cc: Linus Walleij , linux-kernel@vger.kernel.org, Jani Nikula , Andy Shevchenko , "Rafael J. Wysocki" , Greg Kroah-Hartman , Guenter Roeck , Randy Dunlap , Andi Shyti , Lee Jones , Arseniy Krasnov , Johannes Berg , Bjorn Helgaas , Robert Richter , Vinod Koul , Hans de Goede , Nikita Kravets , Jiri Slaby , Heikki Krogerus , Kent Overstreet , Eric Biggers , Kees Cook , Ingo Molnar , "Steven Rostedt (Google)" , Daniel Bristot de Oliveira , Andrew Morton , Hugh Dickins , John Johansen , Eric Snowberg , Takashi Iwai , Takashi Sakamoto , Mark Brown , Kuninori Morimoto , Nicholas Piggin , Christophe Leroy , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , David Howells , "David S. Miller" , "Rafael J. Wysocki" , Len Brown , Sergey Shtylyov , Damien Le Moal , Niklas Cassel , Stephen Boyd , Florian Fainelli , Ray Jui , Peter De Schrijver , Prashant Gaikwad , Thierry Reding , Jonathan Hunter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , Karol Herbst , Lyude Paul , Danilo Krummrich , Jean Delvare , Alexander Shishkin , Pavel Machek , Jernej Skrabec , Ulf Hansson , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Miri Korenblit , Kalle Valo , Kishon Vijay Abraham I , Sebastian Reichel , Daniel Lezcano , Tejun Heo , Johannes Weiner , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Masami Hiramatsu , Mathieu Desnoyers , Jason Baron , Paul Moore , James Morris , "Serge E. Hallyn" , Dmitry Kasatkin , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai Content-Type: text/plain; charset="UTF-8" On Tue, 11 Jun 2024 at 14:38, Yury Norov wrote: > > On Mon, Jun 10, 2024 at 10:08:00AM +0200, Linus Walleij wrote: > > Hi Linus, Real Linus here, not that other non-real one. > I think about renaming set_bit() stuff for atomicity at least twice > a year. Yeah, no. The double underscores are historical, and not always great, but when it comes to the bit ops they are at least fairly obvious: the double-underscore version is the "unlocked" version. That is, in fact, the very traditional logic for the in-kernel use: the traditional model for double underscores is the "this is the underlying implementation that doesn't do the whole thing, don't use unless you know *exactly* what you are doing". So for the bitops, it means "not atomic". For user accesses, it meant "doesn't do the full checking". And for a lot of other things, it meant "you need to take the proper lock". So there's actually often that kind of unifying logic there. For this match_string() thing, that was *not* the case. There the double underscore just meant "non-array interface". I NAK'ed it elsewhere for that - and other - reasons. Linus