Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1833071rdb; Mon, 9 Oct 2023 04:41:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1IEEAARb7grXlVomvmsplq43WRHhwaZpGMYrdmYDHuxTMMcaoGmwv354JnMDBEO0Da6Iu X-Received: by 2002:a05:6a00:b84:b0:68e:2b17:a729 with SMTP id g4-20020a056a000b8400b0068e2b17a729mr15634863pfj.24.1696851696963; Mon, 09 Oct 2023 04:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696851696; cv=none; d=google.com; s=arc-20160816; b=d8rmZJRzuoese9050Lz+rbMqhEhs92CUwcxjYCNYlI5amF5c3kwwKhoNs5WLwsrKzE AWjnBuyd/LJV+LahM6VQONc4ctUhMSuIxUPIWTph67UkUjE+TCyB6kEyBtr9lYTdqcBr i31dHrZwqcUimJRROWZfzF0IYCGYXWAKenJDj+n2ePV3Ox9G+iVoGvUzyjUuGrjAf7KD 722QuCLj4zQOnlHvyn2c8pKSoQiJBBqrnGmjjMh80Bv5BiarvH+jiTIZNAmp9ZaOZ3L6 wBdPKoE1EJwKY0XLriK1Pbxeq2/hCBifpzIjhK1Kftp5rgsmnJO4+HaZXR6u7FtS7A2L NIJw== 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=I8Ea6TW7T9MLSMJpTNywUDmHSrDqthlTo8veDLZhSMo=; fh=D7uhrQnmQG6xf11gbvfi3iQ1A4p/6GZN4OQA8frEvwo=; b=vAqqxG1or1nlHOfZMzG05Rlsk8FpVoRqcugTIm5wTvQ5kC7FDUzB29T1gy2A17Rw3U zDxobldLtOlCWEUtokGZsnGLmFuoWeS5Dx4uvT1vMfoFWn6VbZlITUEbe///C3noZyhE 1VnkO9lZI1jWE56Oy07Do7um1nRytEa+0OS6DCZgBWsRe7Ojl4nb7B/fv5lLYWHiY32O qra4ekptjphWh+qRJupxOa7lV6vQBYg93bI/xMIS5hreyoRFzOiKia6mbUB//dUtVV4i Ty+oeaq0L7z7hgFqr4oCCaorzwEQT3TCuY6Eh6rMNdNjRFw4HwgIyJFqhxItpbqru7HS NlAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4iGheH3Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 192-20020a6301c9000000b005891cd85963si9073290pgb.439.2023.10.09.04.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 04:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4iGheH3Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id B7FE88051A9D; Mon, 9 Oct 2023 04:41:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346222AbjJILl2 (ORCPT + 99 others); Mon, 9 Oct 2023 07:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346203AbjJILl1 (ORCPT ); Mon, 9 Oct 2023 07:41:27 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D23899 for ; Mon, 9 Oct 2023 04:41:26 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-65b02e42399so27844746d6.3 for ; Mon, 09 Oct 2023 04:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696851685; x=1697456485; 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=I8Ea6TW7T9MLSMJpTNywUDmHSrDqthlTo8veDLZhSMo=; b=4iGheH3YMPxn4SELOp2nQP6Vxcg3Er9m/K7Fz1kHcAYbquERgn2lv4Q/H7Mpz2dF0h GkALY8DG4qMav8VZsOZY9vVG3tIvMi+hiF1lgNbKhWixrBy3KdwP+0fJg9RlmKZKWg2x SiFN6WWqn4+8TJfIZG2kUDLe9WO6dWsdjHFF9YnTLH+X5DU1q4CUJgV9ACWViubhXLm9 Z6caJAJuXN3gp9hO2fGo1BaZpVueqtEloRfAdFtCd6jOEigA/3v25dLxLfTpC+NMzpGh CAf0chVzJSW7+/hNiP0P0AG3+uT72DrOwfjSx9xj3HDriLv3tOviHwDR1SlpP4J21OpH YjhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696851685; x=1697456485; 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=I8Ea6TW7T9MLSMJpTNywUDmHSrDqthlTo8veDLZhSMo=; b=EDIqPH2WFigLNcZsXm5YGh1TOLGl+Ofm/ddTBWrhAkX26lesF/hLzPaKLOWxJt8i1e PXG3iF6ZDmTcbEnmhusE5hjbJ8mjnNy453tg5Zq6fPXcQ32Wwg37Ih61gwA9Zgse3eto pxZ8IU6bX6FxzTnE4NgliFSywfQZqccNWCTMm7rHn4a4WiSin+87Hah9YIYxupQ3mwZh aY4/zxEc94a1gKY0++rA3gwUXH3du9QcvF5hk5/gK+dOG32UpFmrzZ7gJuQqdgR+Ri2D A9d1FU79Kz0EuBofKKWrtTWxJvhJW3fuNAs/z2ZNNFH44dJJ24DMGALL9KInvj0Pr6rJ kCGg== X-Gm-Message-State: AOJu0YyGXDgIPwPMv826yj5goIqzzYlChehyu2f8o30/3lIw91Z6c0Cv WkAFJerTy/9Jnq8j6WeVx5hvWb5TFyk/NQYsjchiHQ== X-Received: by 2002:ad4:4d92:0:b0:668:da55:6c17 with SMTP id cv18-20020ad44d92000000b00668da556c17mr14592159qvb.49.1696851685150; Mon, 09 Oct 2023 04:41:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Potapenko Date: Mon, 9 Oct 2023 13:40:45 +0200 Message-ID: Subject: Re: [PATCH v2 15/19] lib/stackdepot: add refcount for records 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 04:41:34 -0700 (PDT) On Wed, Sep 13, 2023 at 7:17=E2=80=AFPM wrote: > > From: Andrey Konovalov > > Add a reference counter for how many times a stack records has been added > to stack depot. > > Add a new STACK_DEPOT_FLAG_GET flag to stack_depot_save_flags that > instructs the stack depot to increment the refcount. > > Do not yet decrement the refcount; this is implemented in one of the > following patches. > > Do not yet enable any users to use the flag to avoid overflowing the > refcount. > > This is preparatory patch for implementing the eviction of stack records > from the stack depot. > > Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko