Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2201318rdb; Tue, 20 Feb 2024 23:22:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUatTfWVVAjUWKIpgs7DD1KU82B+A9iSSTnOzg9POcF/DSXlhhhul2vnP8CKIM5m1ZyXe00ZzcW4ch6QqtnS7vBM/VUjwm45K/a2c8fWg== X-Google-Smtp-Source: AGHT+IE4tLEUcj15I8ydLvaBBYja2k3r18D6IKdGI+INzOI7Nlyzu6n6U/CkV/LxHkBIcOSqhYXz X-Received: by 2002:a17:906:b84b:b0:a3f:47ff:47d with SMTP id ga11-20020a170906b84b00b00a3f47ff047dmr560670ejb.26.1708500150130; Tue, 20 Feb 2024 23:22:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708500150; cv=pass; d=google.com; s=arc-20160816; b=MDq7+kxC5au4EceuaNWv9kCNG+8TPia0dNuiYOQTr+UdUmM30geKF8Zgx6JuTDe3BC hzsTgvyGLEitE2LS+BPtFnTgW8zFm9QsWcd4IP6MPX2a3dz9a2mcJvFvZbNctLYdpeCR o9Z0KO5B9+zLnk4InhyaW26TxfvmkcPmIDxQ4Vghrv3LKusxhYT+uFFtlEit3B3K/g8d S4KsTkz//CT6JJv1zXXqX7zf7IReXYP4heMytraVIK+1mnkSYFSVTiFt372sgix9mYfN yz8tgZ/1jRv6/x9IQ5g9mIvd4esefI64i0PS7OoO/3wAUdxYYQ/m2sZhTjQ2GXK/n+Ff 39NA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=WSnP/0YdPJWcrqeadRLJ8c8YxbEnoLRUfscJ82NzOdg=; fh=4jlCtkhVU5L6grSyLZC2NUWCYKYWf3GrqY8EQOa4vcc=; b=EQHNJo/x1WLyAPrSgan8J9aT7KRlas5am3budeeUc1bGlQpVc+HCBOuoZpqJpBTp3G 4+odewGwhKmPUUwH3HiFEdOJUnUymLJsVOZEhF5WjQspw/PaEzyWsDE6DxzQhIjK+5pi qC2/+aU3HcNjtb8bhbvLprVIfyI37DbVOi38/PI007ytX6fgLYOglXpCeLvzV0It9WCc ihF9s7u/36VUti5xrzA1phMUXNlx0gF7yn6q679iXYY+2eCJ9sXJZvjYbwV1IiIP3lS3 9EzxdYg9+PCbBncy44ryHtuERgR0lFATt+QioqkFlEl9I2Nm5IXrpNKNgdpaHN103tEO ESVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Con9hWh/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-74194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i6-20020a17090639c600b00a3ec6e7f336si2080779eje.95.2024.02.20.23.22.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 23:22:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Con9hWh/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-74194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 135E21F25FEB for ; Wed, 21 Feb 2024 07:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE4DB3A278; Wed, 21 Feb 2024 07:12:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Con9hWh/" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 3299A3C1D for ; Wed, 21 Feb 2024 07:12:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708499538; cv=none; b=k+aCmldRQTSAR9K7eYKTrXz3rx7ktX1gOC+nqYCQkRgMmI5qPSXfwYcqyjwqehdqI38hguL/1RZROhAxgaYujRZEQaItzmRyzHW6ieUFBhBvbOqzHivUjiNcAqWH+XNScK28tA3/eB4MOOPIpU9h99UAo5/WvHyCIDuJBE3mb94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708499538; c=relaxed/simple; bh=FrU9cdCMGIf9qG80/qS7H4d6s+orqSzB9ZJ5kxcAPNM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nv2m9sLjTlJ5szdtevEqehXmak6HLIEosaANed1fdtA928r+/MrwI2BV9HaN7KuLbjpqg7h49qQRUVjxjkFrKYI4Qpk+6OE4y4GIMXqHimjpSwen7WtAVBSgeaLibMnFS3s+cmPsUwzBiaT1RMkmLkFTpCWpkVb6pq6c86V3kI0= 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=Con9hWh/; arc=none smtp.client-ip=91.218.175.170 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 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708499529; 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=WSnP/0YdPJWcrqeadRLJ8c8YxbEnoLRUfscJ82NzOdg=; b=Con9hWh/qgjDQEXO+YEOr5FjUtVBPnumYSQTLumrCqVYXjQm/Ebok6lUO0t/I6ZhVZnaag CWaLu905U7Jrv9AR4XCR2JpU8eUzKGUZB7ttzDkvJMOVCIx/geOWiWsyqF8q52gL8LNGrC r2a6Dzgmpy6lJIS0WjUPJX8XDFYqSag= Date: Wed, 21 Feb 2024 15:11:33 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/3] mm, slab: deprecate SLAB_MEM_SPREAD flag Content-Language: en-US To: Vlastimil Babka , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino Cc: Zheng Yejian , Xiongwei Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Steven Rostedt References: <20240220-slab-cleanup-flags-v1-0-e657e373944a@suse.cz> <20240220-slab-cleanup-flags-v1-1-e657e373944a@suse.cz> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: <20240220-slab-cleanup-flags-v1-1-e657e373944a@suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2024/2/21 00:58, Vlastimil Babka wrote: > The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was > removed. SLUB instead relies on the page allocator's NUMA policies. > Change the flag's value to 0 to free up the value it had, and mark it > for full removal once all users are gone. > > Reported-by: Steven Rostedt > Closes: https://lore.kernel.org/all/20240131172027.10f64405@gandalf.local.home/ > Signed-off-by: Vlastimil Babka Reviewed-by: Chengming Zhou Thanks! > --- > include/linux/slab.h | 5 +++-- > mm/slab.h | 1 - > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/slab.h b/include/linux/slab.h > index b5f5ee8308d0..6252f44115c2 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -96,8 +96,6 @@ > */ > /* Defer freeing slabs to RCU */ > #define SLAB_TYPESAFE_BY_RCU ((slab_flags_t __force)0x00080000U) > -/* Spread some memory over cpuset */ > -#define SLAB_MEM_SPREAD ((slab_flags_t __force)0x00100000U) > /* Trace allocations and frees */ > #define SLAB_TRACE ((slab_flags_t __force)0x00200000U) > > @@ -164,6 +162,9 @@ > #endif > #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ > > +/* Obsolete unused flag, to be removed */ > +#define SLAB_MEM_SPREAD 0 > + > /* > * ZERO_SIZE_PTR will be returned for zero sized kmalloc requests. > * > diff --git a/mm/slab.h b/mm/slab.h > index 54deeb0428c6..f4534eefb35d 100644 > --- a/mm/slab.h > +++ b/mm/slab.h > @@ -469,7 +469,6 @@ static inline bool is_kmalloc_cache(struct kmem_cache *s) > SLAB_STORE_USER | \ > SLAB_TRACE | \ > SLAB_CONSISTENCY_CHECKS | \ > - SLAB_MEM_SPREAD | \ > SLAB_NOLEAKTRACE | \ > SLAB_RECLAIM_ACCOUNT | \ > SLAB_TEMPORARY | \ >