From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 027C123AB88 for ; Thu, 26 Feb 2026 13:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772113151; cv=none; b=ViPe/TW+A1iallxJaGDYbVtAXycg85T53lda+V1/pNEGKG3dd7zL10/m88McBexD7KQMM4vbQPSKO9HIZWMCYi9BASdYrUAPhinBfmfd+d9HOsdjrjmXUdztmPzoRNFJkr/WLSpz/EACI4RhOGgoZQ4fNrGzaYN4BRJbfnT4CWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772113151; c=relaxed/simple; bh=jR5uv885HDHBxmpRoseRMzHbHsp7+BQHhZndtKyuCCk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O52rRF/+KmjxvhsVuD3bHmsw69HFQMuZxjZWfzXlNd6jPlHiZTf++Pd6UHgZHYNHxK4Q6jxfyVhVKYRrQeMu9A4pYgmW+0RNChvniwUQnODBXPbbX36pElU7j13PGdm9AkJ2gg1sb2bsaXAgPpJRitw7GmaWmfixDurgwQXdzDA= 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=LAijfW77; arc=none smtp.client-ip=91.218.175.179 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="LAijfW77" Date: Thu, 26 Feb 2026 05:39:00 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772113146; 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: in-reply-to:in-reply-to:references:references; bh=86+mXi9L/gLCLWNcu/Z+GG/qwyq3WnOhFFQzn1lQbCg=; b=LAijfW77YpuG22Udq9aazERjZ8rTXISFn3fH5kBDmQyvSHGoPNpQ+xcI7gfApl3um0jHeE xM6Gn1o1IeCYWqFgomAd8+WnhYKXcBO25ybeGr87DGNuujH5q0F77ZPmn1rMQ3Z4eBIaxZ QImFVIzvMNhaGFpSh9Vmf3kWUBxbJjo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Hao Li Cc: hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, vbabka@suse.cz, harry.yoo@oracle.com, muchun.song@linux.dev, akpm@linux-foundation.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] memcg: fix slab accounting in refill_obj_stock() trylock path Message-ID: References: <20260226115145.62903-1-hao.li@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260226115145.62903-1-hao.li@linux.dev> X-Migadu-Flow: FLOW_OUT On Thu, Feb 26, 2026 at 07:51:37PM +0800, Hao Li wrote: > In the trylock path of refill_obj_stock(), mod_objcg_mlstate() should > use the real alloc/free bytes (i.e., nr_acct) for accounting, rather > than nr_bytes. > > Fixes: 200577f69f29 ("memcg: objcg stock trylock without irq disabling") > Cc: stable@vger.kernel.org > Signed-off-by: Hao Li Thanks for the fix. Acked-by: Shakeel Butt