From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 5D91D2DC321 for ; Mon, 2 Mar 2026 21:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487814; cv=none; b=obKClx7+8YC38EbfjqzpkERmUv4z256uCrxCz41sWOW+PdmfEpJSu9uHglJeQiJ7hHT4WnHj7JBFlh120Gt8aBljCHvqbancdrMVKlcPfQ4GiPnO+PhSU+6UWkLn7/GcmvPPs5CvsiH/EsdRE8bSyHS4+mq2ECu9hnxZUFlukDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487814; 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=esC4HS8tfKRmxfHSl69SvEVNAF+7n4/kV+b8lrJgtzLHqpqGGp1h/ZZbxOoOjvudZeCpK8PYZ6mrWkaKhFoAEnhaOkCUWnYrawd4/yAJbor94ydbsfTI65s/8rEuSJoBgjQ9o3PC7qIjCNfG8wYgeST9GE8U4gaEiUt/n1ytZeM= 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.178 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: cgroups@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