From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (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 79C8936CE1E for ; Tue, 2 Jun 2026 10:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780396252; cv=none; b=Co24Mj/v/WepRnZeNIz8BCpLrOKxzo+MEPrsArovbkc4jizQWfpGzwDqQOPlgl1gcKTI9qCpYTy5uzTeG+aTDc1ira0N7Ehz+0k5Pf2LVr0SoOi9xNLwZt9BtGNe34f3ulUow0zOwC8HPvUC2kMrINvzgFkog3YIc39cZ9BT4Ys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780396252; c=relaxed/simple; bh=6PhY9wSakercAEOus1R+oHgSbWfT8QjtX6x4T7e+SL4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U0mYf/sf/ULI/I1sO+TcPPaYIfEV+FO5NyvScbU46EHQ2O7ibdiEPk3lpBYqbrfMLJV4nwsrSDkmeE+yg/zLEMp5ncdiONFrZtAzsqJoLIwbnxcfoosJGLIS1f8p/on3vUPiObjfbTco9CH/a+OgvQDSQphtoqWjuEgPDyIdyOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=u2EPKLzt; arc=none smtp.client-ip=95.215.58.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="u2EPKLzt" Message-ID: <23946ec7-4728-4716-af18-29e303ac19e1@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780396247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WeWM3R8w++Ct8ALkI/TqIhD4KtusBC5CW8qyXLrBO2w=; b=u2EPKLzt0Z3v2rcql7TOgWehrPkMllyaNOXrqTqR+GqsmvE78N09MGDQ71S2qxrh65tKQ5 cgFE/fVvfOm/o41xxsWlUb3Ikfsv5buSFpHUCblfiIMFzpJY7HjbzgdE/3IfxO+oZgLh+P OGzgw8wuT5p9hluWBD+HX4Lu9XjKiKs= Date: Tue, 2 Jun 2026 11:30:36 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/1] mm/thp: clear deferred split shrinker bits when queues drain To: Lance Yang , akpm@linux-foundation.org Cc: david@kernel.org, ljs@kernel.org, shakeel.butt@linux.dev, mhocko@kernel.org, david@fromorbit.com, roman.gushchin@linux.dev, muchun.song@linux.dev, qi.zheng@linux.dev, yosry.ahmed@linux.dev, ziy@nvidia.com, liam@infradead.org, kas@kernel.org, vbabka@kernel.org, ryncsn@gmail.com, zaslonko@linux.ibm.com, gor@linux.ibm.com, wangkefeng.wang@huawei.com, baolin.wang@linux.alibaba.com, baohua@kernel.org, dev.jain@arm.com, npache@redhat.com, ryan.roberts@arm.com, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20260602043453.67597-1-lance.yang@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Usama Arif In-Reply-To: <20260602043453.67597-1-lance.yang@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 02/06/2026 05:34, Lance Yang wrote: > From: Lance Yang > > deferred_split_count() returns the raw list_lru count. When the per-memcg, > per-node list is empty, that count is 0. > > That skips scanning, but it does not tell memcg reclaim that the shrinker > is empty. shrink_slab_memcg() only clears the memcg shrinker bit when the > count callback reports SHRINK_EMPTY. > > Return SHRINK_EMPTY for an empty deferred split list, so the bit can be > cleared once the queue has drained. > > Signed-off-by: Lance Yang Same as slab, workingset and others. Acked-by: Usama Arif