From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 4960F1A681B for ; Mon, 2 Mar 2026 21:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487823; cv=none; b=pD2fZY5T84rri5lqGDTEdgcHkVu+gXHA8/f8tc5Iog1FOGCq2+OnDvdO8WEXTLo4n9Kj1bNLNxD06qH0BFJKDIoBZG2nu/7s5dis+W+a2VFL6H6QIDJaRcAOGoFnqRX6tESLEjpNNWfY70MWQfr7Q5n7ravmQwJZDpE1cTSlEXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487823; c=relaxed/simple; bh=wsH48gHPFpZK4mQZTttp0fjnSOhVsgoUCJm6zJpy+KM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mznjO8y4etGYtTX4jQ5qYV8k+jmYWqxqKM8DOpPNkWf+qEMBJOi2phjrOhsTpXHuJT8QwQtqdehzkFf16VeWEdZvxO3/17ipK5pd5VDFsCCnCqcIREo531Tx0R0diih3agcWDhEllvMJ4HS+c19NEE6Ng06F6c8svxPSg26P1P4= 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=w2hfoSkZ; arc=none smtp.client-ip=91.218.175.183 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="w2hfoSkZ" Date: Mon, 2 Mar 2026 13:43:25 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772487810; 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=60cRX5EV0xvioD8lGyLZx9fxgEd6hl9DNCuFCdZHzUg=; b=w2hfoSkZ+A+JXyvdUbdWY4XkQwvehuRVQsgGPC3rEdj6XT1nX2Ma7VaHzvagHdP6jN6Pjs +ZVOP439zTVDKHrE5g8s2qpifFRWVa2cmxO68HK6rwsbZgCPQce1GWLPD/Ou+Djh9cSlYU oje1PcZXy2d3cCcEStF6vWOY7REGZI8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Johannes Weiner Cc: Andrew Morton , Hao Li , Michal Hocko , Roman Gushchin , Vlastimil Babka , Harry Yoo , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Weiner Subject: Re: [PATCH 1/5] mm: memcg: factor out trylock_stock() and unlock_stock() Message-ID: References: <20260302195305.620713-1-hannes@cmpxchg.org> <20260302195305.620713-2-hannes@cmpxchg.org> 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: <20260302195305.620713-2-hannes@cmpxchg.org> X-Migadu-Flow: FLOW_OUT On Mon, Mar 02, 2026 at 02:50:14PM -0500, Johannes Weiner wrote: > From: Johannes Weiner > > Consolidate the local lock acquisition and the local stock > lookup. This allows subsequent patches to use !!stock as an easy way > to disambiguate the locked vs. contended cases through the callstack. > > Signed-off-by: Johannes Weiner Acked-by: Shakeel Butt