Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp493818rdb; Fri, 6 Oct 2023 09:16:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFr4wZjYWT7y+pgoXgqC8aPJJZzl/FkqNOyXP7m4B/y7iZKVjCxKa9r0aWcdNpe5tN+9Bp6 X-Received: by 2002:a05:6e02:1c08:b0:34f:6dcf:4100 with SMTP id l8-20020a056e021c0800b0034f6dcf4100mr9563552ilh.11.1696609006941; Fri, 06 Oct 2023 09:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696609006; cv=none; d=google.com; s=arc-20160816; b=pVKKjcmeVNvWbgGYajFXuBV5buWdktvFBMy8Y9MWCIgY4EeXWEfJbpTh+9FUA10OBE fse5ziMAFeoaB1yZ1COi0/UPUFZqJoVbYtOrDAAbHBxc9Awcul5nFNIJ2gSjFW//gSr5 oQHnmCASVImnGhBx0qo9rtxseReCfKOiXIWF1qG9Flu1e6nWcsmRenCJlkdP4Le9IfBF 2eRKgfpMJlpF5KBdZQ545HpQoZBVvCpyITjTTjWs+EDbXnxxFkQX/J7FMAkYndIQ/iXt ARCpd87ub/F/+x3SRiSjl8pn1gkEgDtSHSDI/ZaE6nO5cDtJEGszkThD1Dr+U88ovRpq sCHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ai1VUkXPsadETq6pOE6a32ZLkIYlGlq9aDxrp9PEvE4=; fh=D7uhrQnmQG6xf11gbvfi3iQ1A4p/6GZN4OQA8frEvwo=; b=0e/onoP4Cj+cG6uyx/GjuNNIx4HhQOh8eoRlPfhTlx4sE9MTDkEkezcE5zeLe45JfU dRvbYvw3LnacZNomO5DVm48Cc+kidZU6qXA9vfuD53aDTbDgeff3UNElVZiKTF6PgxUg By6KohDWhkfzqXgEj0vfusfxHsdqP8lfsFQzQjXmq2cSn/ziZf609u22OsTusHy8ymg1 GuYhKBPDl1yylyOl1vYPgMTtI5JLEbUHfL+Zfg+JmuguCoA0Y68IMXN5VO9X+Jpe1D7r ShhtcuUbdPgXZOJdy3NjsbJGDvLsMcF0DOWHTdTAxZJm1ndDpuqDKLNm0WH8cfGjiZzp Uk2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Zuk8/iN5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y1-20020a633201000000b00588eedb3054si3901039pgy.1.2023.10.06.09.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 09:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Zuk8/iN5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 090FC80A44DD; Fri, 6 Oct 2023 09:15:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbjJFQPk (ORCPT + 99 others); Fri, 6 Oct 2023 12:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232543AbjJFQPi (ORCPT ); Fri, 6 Oct 2023 12:15:38 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E5ABA6 for ; Fri, 6 Oct 2023 09:15:37 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-65b2463d651so13037016d6.3 for ; Fri, 06 Oct 2023 09:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696608936; x=1697213736; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ai1VUkXPsadETq6pOE6a32ZLkIYlGlq9aDxrp9PEvE4=; b=Zuk8/iN5s/Ogln3oCXDhGbvD3BLgqrxL4zWLH8a3R3A7VN937n1t4T1ss9tjOQrIGh Tcg2atvNfVydPrcujCf7lRciIEhmjorLY8zabpP53nhIQKzuAsXpnw9TZfIRPGKY/wb3 QVIuktvF1IrHlyhsvm1Nn5Xj1xx3lplhNrxyiJd5USxhj8HZLwLDrPzLeSOZSpFIOc9p GMG3qPa+GEVFILyX9n6J7avpy1rUA9t783tLzZOGggCLQQnS5v4iOjUTtwDBKCaeQHWo Xkl846HzJtI93qXzpAL48aYGZ86WASTqy7MaV/ek6BbeZAJw0XZ82PkcQXD2d0wHDtyu aQ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696608936; x=1697213736; h=content-transfer-encoding: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=Ai1VUkXPsadETq6pOE6a32ZLkIYlGlq9aDxrp9PEvE4=; b=vFnXndItRSPks9d7/g0C5hyemT5I/oEsP5Ud+rv+ThQAVwTsQEgNsBs/il3/aYlenO nJvBOlDDTq3z8Sn0yrw4ivQQ6VkryDBj7EtkMVSu2KJb6lZ6oP+GMvwS57sRtQJbwZQ8 7mj9MapxosblIym516j/d9Unox9gMSu5kUB4X2t+VkjBGT79NWWUY0ikLO13DGAv12/B +dA3p+E3mHr6S5r99gsUEglV39PtJMDh/P2sATZBTRltinuSsKBdinvKji/RXUfE/3YX skqi6AiOj+H6nFBim4U5UdQ6rDmkF12A5TM665oCzWYnSUwblFdfOYgKlBMTt3clbAjv hNGA== X-Gm-Message-State: AOJu0YwzeC6rMF+4Bfg6Z2hiSyOIZkeAwK2L4bEsKxayKUypyZObW0xu SgtMcv34GtTCbBcJMrn+esfZlkUyBh0F0w/8N32IXw== X-Received: by 2002:a05:6214:4285:b0:658:708c:4d56 with SMTP id og5-20020a056214428500b00658708c4d56mr8723713qvb.17.1696608936423; Fri, 06 Oct 2023 09:15:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Potapenko Date: Fri, 6 Oct 2023 18:14:56 +0200 Message-ID: Subject: Re: [PATCH v2 06/19] lib/stackdepot: fix and clean-up atomic annotations To: andrey.konovalov@linux.dev Cc: Marco Elver , Andrey Konovalov , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Oscar Salvador , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 09:15:51 -0700 (PDT) On Wed, Sep 13, 2023 at 7:15=E2=80=AFPM wrote: > > From: Andrey Konovalov > > Simplify comments accompanying the use of atomic accesses in the > stack depot code. > > Also drop smp_load_acquire from next_pool_required in depot_init_pool, > as both depot_init_pool and the all smp_store_release's to this variable > are executed under the stack depot lock. > > Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko (but see below) > * Move on to the next pool. > * WRITE_ONCE pairs with potential concurrent read in > - * stack_depot_fetch(). > + * stack_depot_fetch. Why are you removing the parentheses here? kernel-doc uses them to tell functions from non-functions, and having them in non-doc comments sounds consistent.