Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1330319rda; Mon, 23 Oct 2023 09:16:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2Ve7A23MHCdX0MUUPoU6hL8CQfEzNsY2Qfyud//Yxk99/vB0TI+RxEay6tQeRDyRRLBpV X-Received: by 2002:a17:903:238f:b0:1c9:d7f7:486 with SMTP id v15-20020a170903238f00b001c9d7f70486mr6470200plh.59.1698077775757; Mon, 23 Oct 2023 09:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698077775; cv=none; d=google.com; s=arc-20160816; b=J1SM1H7IOiCpeOB/LJ3nBvJ/y0tMcW3y0XxlOyHk49LbmlTGkOrB3WTeaBS7LOSgcS HLDc05pdP/0q36BJ4qcu0idHlolSUPeP6IaSLehguwlLA9J/u7ioE6F7mZjdUT7KoqEs /2MQFRwykHcjuNWETxBOSC/fHRv9htoNJ5QhfylX8fh4McQYuSRcgZTGo/UzZrhFrLrk WbcaHEH/TERgKQhldXXaqvtaEc63aLrqAeu0zCQVjSB993uwXa+3qEVPHJMSMJi1W0Hm 35KCkDbfw1IRdiXDHVicyxXDomlZUB/9gKxJ0Ac8rXkxG1AyU/X8QSszSMjgMZdpVSpz asmQ== 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=I7P8oczVJ6z+n4v15CASAjFJRtKrm1cxI4uPJHeGdVo=; fh=ClZrlmqypC8gyPFrg/phNYXzlKrWLi1ezKQD4pdvko4=; b=V4Qxr5rnL4bwLBV6QGEICnoxUdn6ONsAlviIngUKFVus+BwFKr7G7BWZ8y9/7d3/4c znu+Smw7DJZaTrkaOn2Scs9sJ1wvBj54J5bRZvVnj2G7foOOW156GaGr4EuIdNyY70iG vl0P7JHmnZRjjQfmVmfCrAd57ynb+K8qFIouWEj9RoQT8py9VBWnLtjxLHyNXu/OIifM +3LnvWS6VJQkoz7xj5FAjLI6t2xlbGClpDXXkDa7yHFutsrLEKf/uG/cOhZQdHXkT1fz 1AihBFPWIyBrMoh1vi1h9J/RxFHBt7bWTQ1mdUNWQnKs5W5BDDDN2OAB71uZAsEsNow0 so0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WGFN57xE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a6-20020a170902ee8600b001c9c566b847si6504926pld.84.2023.10.23.09.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WGFN57xE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4ABA804E79A; Mon, 23 Oct 2023 09:16:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233548AbjJWQQJ (ORCPT + 99 others); Mon, 23 Oct 2023 12:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbjJWQQI (ORCPT ); Mon, 23 Oct 2023 12:16:08 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AB16FF for ; Mon, 23 Oct 2023 09:16:06 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-27e1eea2f0dso1704635a91.1 for ; Mon, 23 Oct 2023 09:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698077765; x=1698682565; 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=I7P8oczVJ6z+n4v15CASAjFJRtKrm1cxI4uPJHeGdVo=; b=WGFN57xEJPykfmD370k71+0/7zCERcTMbkrd/m01xJtajuE6WvjaHNZtJ/5MX20l/j 8jz+TvGYL2LLN1lflDfytBO+4QPYGUcH6Gd5TwFqOiz2RzdQlGSV0o6cdivsrfmdrlul wERHJ5iQbWOCGxhuM7U/7QFUx6LtEy5utmpv6LzKuE9cH/Wo2grIa0q9zAfXL4lMpZV4 zhpS3n5eXuF+n1OuL82fJlpmNe7IOWqc5JU689WTbcuOXtd8NLvr2WF4S0Jxfe0YF6uT MgXyXhRanV1QHcdHE8s/cm9q/3PYoKhNA/gZPw1DNy6V2J+0rRM1MWvhshalpoFGPBdB 6FSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698077765; x=1698682565; 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=I7P8oczVJ6z+n4v15CASAjFJRtKrm1cxI4uPJHeGdVo=; b=utH/asGxvAOMlyU8tOzD8a68pJJYETSs/zk85b/lRkkMxCGrcefFHjrN2dnFYYyC10 5dUGbjqgt20AaLstVO6g8dOTtbKyqa3FB7ejhvdFDXJZ78MuWvelwWGcJSzmR/h2Elum mtwBiAbvJs8UnrScPI7YXj+BxCSWsLAu/3AQ7Jhn8wITcPOUmpDnVosB1wXecpbuIxN/ cMd7rmpZmvLFBPbcpnYSzDKeHQkvy+udvmjLEM5KogN+gBt8xZ9Lt8Tch3O2Vowgbfjm 7dz2n5PipP4u/duSpMZBtJr3KQx5TKgu8FWCGqXysFStuOTuASSV+DIIYrfZOcKZsdDY IDwA== X-Gm-Message-State: AOJu0Yx8hXsTYrj9jYOSnVbegNmxBZ4cX1twBg8nXDHXczxH5/0W/sSq LWfUCQz+48GaBYIIo483kKCG3QHmkh40MN3MvRs= X-Received: by 2002:a17:90a:8a12:b0:27d:1af5:3b17 with SMTP id w18-20020a17090a8a1200b0027d1af53b17mr6747462pjn.26.1698077765375; Mon, 23 Oct 2023 09:16:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Mon, 23 Oct 2023 18:15:54 +0200 Message-ID: Subject: Re: [PATCH v2 06/19] lib/stackdepot: fix and clean-up atomic annotations To: Alexander Potapenko Cc: andrey.konovalov@linux.dev, Marco Elver , 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:16:14 -0700 (PDT) On Fri, Oct 6, 2023 at 7:22=E2=80=AFPM Alexander Potapenko wrote: > > On Fri, Oct 6, 2023 at 6:14=E2=80=AFPM Alexander Potapenko wrote: > > > > On Wed, Sep 13, 2023 at 7:15=E2=80=AFPM wr= ote: > > > > > > 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 varia= ble > > > are executed under the stack depot lock. > > Maybe add this to the comment before "if (!next_pool_required)" ? Will do in v3. Re removed parentheses: will restore them in v3. Thanks!