From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D72F13451B5 for ; Mon, 24 Aug 2026 07:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787555716; cv=none; b=q9cWK4alJoJtATdQ3ic8sfNtFzaL2F5Pgnss3sRyHSqjlWINAjPdszInbOtMhx0g+Rdt9H5aL5AwZprFDP1Tz+oO6qBZgGbSAQFMcM0GLvQ6FgfNVVX3ujnL19+qiPQ/6QPToL4r+QdOj40aJKVTUCfZejVMpRf2/jX8yKj/wYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787555716; c=relaxed/simple; bh=xM1h4E6d0MlH5Y+OPgGEjCUoaZXisWwfNWPE4kb8q2s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mBIzCaNXDmuiG1q1c+hmCzcPZKIOUqK8zfH17opxz7Z9B04p4E+OdTz09ja33HRVjJUdjj7P+sJjtcvNRI5axF6CmvL/wR8cyP+L7seXc3etaHs9jXawZqQxhUruYHwK3q/Ndeawaxcnuw3oHCysRsaCBpR9Ctrl67bbEstAgQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=mCLrJy3q; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="mCLrJy3q" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1787555703; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=kMmBuSCYY9CI/ipcLyXVqFvMMwlodxm0NKYJ1S+Xf/s=; b=mCLrJy3qqbwVl120mJhWCD92le8+W0/Df1D5D1WzHR2P56sRfb91jyxYCA7epwhaec/oavI/bKzV0CnOIHlmCEO+BaKnmu+WlUMfiYfg6MP01V4dFBljisPOKaWkLf8x9VpKR7SkCPCJ3og9RQTul4ItwkXCDZUTZnyNn6u1TIs= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0X9UBU2-_1787555700; Received: from 30.74.144.121(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X9UBU2-_1787555700 cluster:ay36) by smtp.aliyun-inc.com; Mon, 24 Aug 2026 15:15:00 +0800 Message-ID: Date: Mon, 24 Aug 2026 15:14:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] mm/mglru: retry the same type once if isolation fails due to races To: "Barry Song (Xiaomi)" , akpm@linux-foundation.org, linux-mm@kvack.org Cc: axelrasmussen@google.com, baoquan.he@linux.dev, chenridong@xiaomi.com, david@kernel.org, hannes@cmpxchg.org, kasong@tencent.com, lianux.mm@gmail.com, linux-kernel@vger.kernel.org, ljs@kernel.org, lyugaofei@xiaomi.com, mhocko@kernel.org, qi.zheng@linux.dev, shakeel.butt@linux.dev, stevensd@chromium.org, wangzicheng@honor.com, weixugc@google.com, yuanchu@google.com References: <20260820045603.68809-1-baohua@kernel.org> <20260820045603.68809-4-baohua@kernel.org> From: Baolin Wang In-Reply-To: <20260820045603.68809-4-baohua@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/20/26 12:56 PM, Barry Song (Xiaomi) wrote: > If we are not exhausted (i.e., there are still folios in the > reclaimable generations) but fail to isolate any folios due to > promotions, protections, or races, retry once more to avoid going > through the outer loop again. > > Signed-off-by: Barry Song (Xiaomi) > --- Make sense to me. Reviewed-by: Baolin Wang