From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 25CF1328AB for ; Thu, 18 Jan 2024 22:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705616067; cv=none; b=D+6Lbeiz6RETVE2syZycE7/5WlQ4okB42jK2xXJV9tOABTH69TG97xP9OU7UvV6Jo/j79hQELdSsMDED0+5uMCUs1S+qe/ocQADnv4H7PvvpSZnnt4LBMHsDItNayTrx51KJhc8GKncYyZKgOO/34h7lcvCPrmAtRGcvlZeHjk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705616067; c=relaxed/simple; bh=KNzMXxvj1PRO1JNAxJ39l4/YUa8pBQvllxzTgn89BZU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=KgAxkqZzFYM9YkEGIFlRRLLAdg48rdX0w8GUu3jQL7vpuUSvDdiQkXuegupvurqSYlJh/mqgSHrHyni3suhMF9ET51LgiX5tN9uw5ntMK08lcY8PbbpeDlSnuL1dGMeoV08H5wcWT3/oHIaPvCfsSXIR4J7HIExX36PV+58tdu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id C879C40AAD; Thu, 18 Jan 2024 14:14:17 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id C67AA40A82; Thu, 18 Jan 2024 14:14:17 -0800 (PST) Date: Thu, 18 Jan 2024 14:14:17 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Chengming Zhou cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Joonsoo Kim , Vlastimil Babka , Pekka Enberg , Andrew Morton , Roman Gushchin , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm/slub: directly load freelist from cpu partial slab in the likely case In-Reply-To: <412b8618-0941-4d9d-85df-ee480695e7f7@bytedance.com> Message-ID: References: <20240117-slab-misc-v1-0-fd1c49ccbe70@bytedance.com> <20240117-slab-misc-v1-1-fd1c49ccbe70@bytedance.com> <76641777-1918-2b29-b6aa-bda9b5467aa3@gentwo.org> <412b8618-0941-4d9d-85df-ee480695e7f7@bytedance.com> 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; format=flowed On Thu, 18 Jan 2024, Chengming Zhou wrote: > So get_freelist() has two cases to handle: cpu slab and cpu partial list slab. > The latter is NOT frozen, so need to remove "VM_BUG_ON(!new.frozen)" from it. Right so keep the check if it is the former?