From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38AEBCD37BB for ; Sat, 16 Sep 2023 11:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjIPLip (ORCPT ); Sat, 16 Sep 2023 07:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238123AbjIPLiQ (ORCPT ); Sat, 16 Sep 2023 07:38:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F71CCC7 for ; Sat, 16 Sep 2023 04:38:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96F18C433CB; Sat, 16 Sep 2023 11:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694864291; bh=QoDRS50sUKPNOfwLro7Fq3g9UTpB0SXhBrAqlsXZ2z0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tao+yrBJ0dWyXJ/+uaeKVhqviX11PHF1L7eFk36l0+o6EDFdjculM0PALpHb6u4vr L2+JDFp8IsvmESViUMU80W0wFVHyYsUDnaFcUtiWJd/2nci5NeNwtNaznlO54e7J2J aEUgWaZd6WHbd0gSzUrzQ+idaw+7EkULeN8tDT9E= Date: Sat, 16 Sep 2023 13:38:08 +0200 From: Greg KH To: Kalesh Singh Cc: stable@vger.kernel.org, AngeloGioacchino Del Regno , Charan Teja Kalla , Yu Zhao , Aneesh Kumar K V , Barry Song , Brian Geffon , Jan Alexander Steffens , Lecopzer Chen , Matthias Brugger , Oleksandr Natalenko , Qi Zheng , Steven Barrett , Suleiman Souhlal , Suren Baghdasaryan , Andrew Morton Subject: Re: [PATCH 6.1.y] Multi-gen LRU: avoid race in inc_min_seq() Message-ID: <2023091658-cinnamon-storage-74eb@gregkh> References: <2023091354-atom-tinderbox-b9be@gregkh> <20230913211256.2552031-1-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913211256.2552031-1-kaleshsingh@google.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Sep 13, 2023 at 02:12:56PM -0700, Kalesh Singh wrote: > inc_max_seq() will try to inc_min_seq() if nr_gens == MAX_NR_GENS. This > is because the generations are reused (the last oldest now empty > generation will become the next youngest generation). Now queued up, thanks. greg k-h