Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp532789rdb; Fri, 6 Oct 2023 10:22:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlCQ6PW0dyOr58lhQPXaHVO09/JfU+MHEsMcoX6eIaMYAUBjCZA3S4mhH3Piot5WUh/RDB X-Received: by 2002:a17:90b:4f8c:b0:268:b66b:d9f6 with SMTP id qe12-20020a17090b4f8c00b00268b66bd9f6mr7924069pjb.18.1696612947248; Fri, 06 Oct 2023 10:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696612947; cv=none; d=google.com; s=arc-20160816; b=hQ2lojQh8vsypf0LIMTPMr6zRqM7m8/xrX1NFwPGTplUBS4l2fbFihHqXJu0YdjEWF VcGKD6FJ9lxjSKrl/6srowUdqKrZWELKqJPCm1/mDuJBfY9/7JRiV/MMtzn6ZnUcCZYb nR3cCNCG8M1HyLeAHdoGOYvZb+ewaN64ZGF8hNxYX1doo1Mj13hfYzBz/qXTIuc8cKeN erSbQCjX4ueYRNMGxfO79tyifbxR4P5yH8gh9LfJqu43D4kJ04c9Zeeuk5Iu+A2w1N4U Mjrz6zdbkUhripMNbd3R2yXkuYpT6fX0114ewJlEaHLVY0O/ggFp50m44aZutgs4qHbY +Agg== 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=EknEuy8+VO/WBZWGFtfzssW3dtzNayZawyALF7dqvnA=; fh=D7uhrQnmQG6xf11gbvfi3iQ1A4p/6GZN4OQA8frEvwo=; b=e6LaAFPe9tlxMDFREMpg0AyEOLyjbemTzTck8EeDMAlEehoqjGiQHd0sIHMp3tG1xf fgv0sJqymIG9plVByBng46vWsoGnH29hHHOMMHzwphymRp4CfTfFR5dcjc/gP7y0X8Yc kxX71Wwn0FWMfhUkFU1fuLdTWTqwQJUr9AqyRSubYzcznoleRNgED493m6IMyKfg39Fd QP7V5I7yIVfG6pO4RIAB7koVLHXgMpuwx+Cz8+P+1oeQ+yf8GIaZJI9qz/fk/rAInVxL b80RwcD1It8Wb0ZmdpbCY8ReRrLd5jwss70dNfwGi5eTNO+k2MTVUaEm4rfeIn3WHifz vbTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SlyUjpb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i8-20020a17090ad34800b0026b4d5844ccsi2552341pjx.27.2023.10.06.10.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 10:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SlyUjpb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 4BCFC827D661; Fri, 6 Oct 2023 10:22:22 -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 S232988AbjJFRWM (ORCPT + 99 others); Fri, 6 Oct 2023 13:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232993AbjJFRWJ (ORCPT ); Fri, 6 Oct 2023 13:22:09 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C79FCF for ; Fri, 6 Oct 2023 10:22:08 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-668d9c1f70fso12613616d6.3 for ; Fri, 06 Oct 2023 10:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696612927; x=1697217727; 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=EknEuy8+VO/WBZWGFtfzssW3dtzNayZawyALF7dqvnA=; b=SlyUjpb4Z98wEz8TOIrAkLCzruhoe2QiH6UhEDbrld3+oLP+LtK3GOcImTm2dZJNbt M7r9n0ohVXL76p6FVcIw4mgURNAhwdOF9/S4mcJhiOCQ8uYKEHyHLtvkJC3NxWPPHdG8 DsIeER1sUVGPd40Q3WL9xarulC0HmOWrlnLOmE1JR/n3DiZI3fOAXhjQhMCVJUyU8KFd 2ULPvUKc/In4u0ETchVLf0qdDnzsuuFY7kiNLRBVMBjv1cARQLe73bY1449SQJdp8F4K D46j5WOaHNQbNlzDPk7EKX9/2MftpO0ONqYHcGd6u4wpDKj8vzAsMILJyujv18mRG5AR itTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696612927; x=1697217727; 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=EknEuy8+VO/WBZWGFtfzssW3dtzNayZawyALF7dqvnA=; b=jg0MTgMv/PgzKHIE5lHyaJLAFp9hlKOllaBCqmmjKnVodyuwsGDVBZnwjoFxflXACk mMVmSo8QbJqpPVnP/wbsd16JZ3BbW0mDeV9nmEbKP+ifCusA2TsIvLy3VRrAEN94vtVI P76IFuQtmpyg9y9lOMw+OoqEU5bcsqhymvUfwmlx8z5fkcpsJ2CESDerEhV9oGYDaRvI ZKz1rnKv3otBnl61Uh74Uy0XA9Hs5GQA1n02aw3SymtMFt+nsNCQlt2WPn9SIfoAnBcu 7TP3EtQxFyRI1dYMHKuPwJuBENbXgOjsRhZHGJaiNBL/tOvuwtTjelTaF4r221yQHVpT ekrQ== X-Gm-Message-State: AOJu0Yytk6osszNYNQIUANKgahGuwx6ojgdqZBbqxKmH2SIR9CBVQ96c BP8rGZS8mZrG+/wMhj1iQltsbF8oEHnv/HIyE9Ws6Q== X-Received: by 2002:a05:6214:180e:b0:65b:ed3:9a02 with SMTP id o14-20020a056214180e00b0065b0ed39a02mr8264327qvw.17.1696612926911; Fri, 06 Oct 2023 10:22:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Potapenko Date: Fri, 6 Oct 2023 19:21:25 +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 10:22:22 -0700 (PDT) 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 wrot= e: > > > > 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 variabl= e > > are executed under the stack depot lock. Maybe add this to the comment before "if (!next_pool_required)" ?