From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 C70FC1799F for ; Sat, 10 Aug 2024 02:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723257571; cv=none; b=Fj8IkZ6gUkua2uRuFf2Po4UtmETRjVE3EhlZi8UcwyRdL5lAEMdoAdKKHsTys5AyWGnvFTLyEtRM2oylbupzPJ5XFnxoxlUvohTM4K1TSIVZCzYpNaf8Urlr1xiDqWEQf3UGY+giOUaIn0QZt3aRWsO9+bqzSLk1dlAYKEqwpok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723257571; c=relaxed/simple; bh=+weEgowa/sf3AGpmMQCdg5onlZflD/OQ1Rk7FS6GN4A=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=AsedP66nwSZL7YA+GiXyN8Sp6mee9+kHncj6yx0oahpwJ0tO8glk/ft/dDrkVfS44vFqSSK4yhp1M5fZO019imVnASn0WyDzpNJrBYzRCmnAtWbtTn0eO7Vz5V7izzH8oMzZ2/A+LtuD2DgF/87xiug6sqe0i+iaXknURjkLRSg= 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=qAZCCvTN; arc=none smtp.client-ip=95.215.58.185 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="qAZCCvTN" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1723257566; 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=nI+Vi4pbj0gTCrjL7DMWl6AgcfOJvlF0DoxzDvU62co=; b=qAZCCvTN+nVPafsEp6qVwXKPq06wHrt4RBcMMu7V+s7rzc1tzF7VlhTLNgg8wqeK4awn8Q l93xiM3ku8MTrGEowOu+XmXcm0jLvQv7VINKf6if/UjuSDBbgOSin4YgpHzitU85jEBZ7v sQ9SgslhesrDKyrfPL1z2CsAR1ynrfg= Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PATCH] memcg: replace memcg ID idr with xarray X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20240809172618.2946790-1-shakeel.butt@linux.dev> Date: Sat, 10 Aug 2024 10:38:50 +0800 Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Linux Memory Management List , Linux Kernel Mailing List , Meta kernel team , cgroups@vger.kernel.org, Matthew Wilcox Content-Transfer-Encoding: 7bit Message-Id: References: <20240809172618.2946790-1-shakeel.butt@linux.dev> To: Shakeel Butt X-Migadu-Flow: FLOW_OUT > On Aug 10, 2024, at 01:26, Shakeel Butt wrote: > > At the moment memcg IDs are managed through IDR which requires external > synchronization mechanisms and makes the allocation code a bit awkward. > Let's switch to xarray and make the code simpler. > > Suggested-by: Matthew Wilcox > Signed-off-by: Shakeel Butt Reviewed-by: Muchun Song Thanks.