From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 458501B4F0A; Sat, 21 Mar 2026 19:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774121234; cv=none; b=YhFqxpUdZB0BGCKOo54FgxnKY0hcyUoGadJ31TBlWTzfrv7Sq9E1WXiMQgZfH7cUb2X9yAZFgY9nB2LnVx1p57p6YJgMNMwVIyIHgZ5o4k+FsBAg8R+9HFhDypILeAnC0FflLM41HE8MkfgwtCIM5WPkuoq1ws9zGgoUey4x318= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774121234; c=relaxed/simple; bh=px/TL8DGdi8VbNkcoFn729fcLlKGeeNByfaaget981k=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References; b=OVx73qTuhSlDuV01rEmyaiFEi35xEbtTMyZ38GScKgZf01PTzIxEC9nKbhPjLosfDKJ3WYwVh8fNvssoMlU2S/hSSCqta+ssD3h4hjW3t+11Yo98rcq+m9R23QKVgoRKUV57+uqmJK02Xvu7IFZA4pD30TxfO1tqfq9N4LwVy0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BX1Yu60O; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BX1Yu60O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E6CC19421; Sat, 21 Mar 2026 19:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774121233; bh=px/TL8DGdi8VbNkcoFn729fcLlKGeeNByfaaget981k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BX1Yu60Ol5ehk77hP+kFw96c2GjI8TOxEBdOFl5VXyNVJBTytBLi2nXgYekVxYEr7 brjaVeauUx3ZE3XSDQg8+HzLoe1zplCI88ytF0pGZ9ygt8Ns1TXgseGBA0j7w9sJXG OwgrT6hs4Dq7sgn/JRlXhAMFgyA2nZ8Sb59ppFXvC+jIzXtPVIHFTtn6ygyqPmqJz9 bIi1NlqRpDMHT2rzmC+8yOob0YExGujcmXbr4uvfY3oq96AMY3JeiMKqP8B3ksQ1L3 oOAJcIxAWP/U+kffezmYLPIclivp/2LZSlfawz170eQe/06ejpYCsXx7gLfLOU0uys CUTiA6Xcx4vyw== Date: Sat, 21 Mar 2026 09:27:12 -1000 Message-ID: From: Tejun Heo To: Thadeu Lima de Souza Cascardo , Maarten Lankhorst , Maxime Ripard , Natalie Vock Cc: Johannes Weiner , Michal Koutny , cgroups@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-dev@igalia.com Subject: Re: [PATCH v2 0/3] cgroup/dmem: allow atomic irrestrictive writes to dmem.max In-Reply-To: <20260319-dmem_max_ebusy-v2-0-b5ce97205269@igalia.com> References: <20260319-dmem_max_ebusy-v2-0-b5ce97205269@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hello, Generally looks okay to me. One comment on 3/3 — the naked xchg() in set_resource_max() needs a comment explaining why it's used instead of page_counter_set_max() and what the semantics are (unconditionally sets max regardless of current usage to prevent further allocations, since there's no eviction mechanism yet). Applied 1/3. Maarten, Michal, what do you think? Thanks. -- tejun