Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp607444lqp; Fri, 5 Apr 2024 03:44:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzR/gqroBJOvSWcHym6AeQjLJfH5vcZ3zVDt2PJMDvUowBl5dm7Rlc2VFrOvU+bvW20bJYo4pQDE8b8rhKXqEWvQg1iB8D98leoXekDQ== X-Google-Smtp-Source: AGHT+IGMQIHUNPJePcU1hSeJcXfu4k3wX7mU39kvmFxsc5ujB7Woid7b5Hp+YZ5vM4L/Ocm0r0Hb X-Received: by 2002:a05:6a20:6a12:b0:1a7:47ff:5f37 with SMTP id p18-20020a056a206a1200b001a747ff5f37mr138814pzk.0.1712313882629; Fri, 05 Apr 2024 03:44:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712313882; cv=pass; d=google.com; s=arc-20160816; b=X9/NzzHgLXYFqC3eSgnCgCrytR+BpqltY94uHBuVIc7y69Wse3A+5NpL7x8ejDceOa RaadUjWD1Smd2Tlx7s4e25/EmstWVqNAs5m1gpWb530Zqeve5un2M1CqejoJZH7QF7sj x3ZV/Yi8SyWwsUBnZrkRHH/kSVxoC+Ttr9pG6NpuGzIBZ4wjD3WNw6XlRfuvzvlJ2Q/j oYvW08rnLPVyB73dIbb34GWJiZaIQE//7cuk8QgljDTIOcpxxBbJdZVEoHYa5ZX+vDdG gAyJDDD/3KzuoJIXjVo/r0dGt4LECDJhyg4T7P+yX+bxibE4vAAdWMXGGB3+yu72fv4l I30A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=ujKJNakC2lY1afOYTNxjDOu1u3voQsxq+lDvp53sD9I=; fh=r5aHYDJ3zU33cGWlHGUiJ/syNZlR2m+9+8WVaAqPzBs=; b=kUGGrAYIhRN7bAabGbjRBEN2q9OJRuFbb63UFD47bKAT3aHt0cYQyDpLAg1fagrtYg GquK1i+bZCeQGyTcS85f7rcJCB2gz2hHaqbYB10kPSDNbKZuAHbI5lQBJqFQz+gK1KfA Lh3OvvH4sOFXCsZjXTByF7SMHpPEupJ0OaZOuxg3CFiReplG2P/OiF7dAH2PjtELbzSg rc/BIWs5cw3ybFmfngJ4FxnBsZwFYk215uy8mmTMl6Or/CDldgT2a1A1sgq6ac6xDweA eMlbQPNetruBbrl67q/Y8TReaMUrpyNDdyKNzj1tCWEKNWDoc8U4zwoa9eaWBcrn1N2O 9I5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=j4++e9W9; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=j4++e9W9; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-132847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132847-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lb8-20020a056a004f0800b006e69b4fa495si1164771pfb.175.2024.04.05.03.44.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 03:44:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=j4++e9W9; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=j4++e9W9; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-132847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132847-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CA256B22780 for ; Fri, 5 Apr 2024 10:44:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51AFC16ABCB; Fri, 5 Apr 2024 10:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="j4++e9W9"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="FtpHEAcp"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="j4++e9W9"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="FtpHEAcp" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EF7718E02; Fri, 5 Apr 2024 10:44:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712313866; cv=none; b=hPsMiopuArapy0YJ7KWW2uWyRzJyIC69yRwc8KogJLzPArkp2S9+NIG5OPUZvpTlhpHYLgU4CWqWpEJELfpxGXRa+Ja6YdSJI82PYHazmm+L/33D44TdKGYVzRYvyq3oWgbUbEbYDwRicnXVTHxSnOMsl5+v/FaddphJlNIyuco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712313866; c=relaxed/simple; bh=7RNwrav9gsUT+HkGUSeZ6P3OuvkmVs0i2tQMpqCCR9g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HV30i/V20KzFsKBfl1ZXvVQShgSZXe9sgmjZBrrZcvT0c1IUXUVnuRey/pR8qEg5MEjWhkEI9q5LLzbrbIdNlNxK90xL8219w3Q+nX2BZ75mGI8mF+6vP9R8AkCuWUWZSBWKmHewzGG8ie6AAj31rR0bf7yBHe7Wq0cRXGlKgHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=j4++e9W9; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=FtpHEAcp; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=j4++e9W9; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=FtpHEAcp; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9BEFB21A34; Fri, 5 Apr 2024 10:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1712313862; h=from:from:reply-to: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:autocrypt:autocrypt; bh=ujKJNakC2lY1afOYTNxjDOu1u3voQsxq+lDvp53sD9I=; b=j4++e9W9r8Pl33/JlVK9iLxWXn00q9gdZDwnI9mK7jlrFQkK7wQTbQeOZwe55COg8MDoqP /jvWm/klVqw6x4eCZf6MUvq/3r6tdMjAHeMpm9Jp4QCVjjX/621qDnn/t9YRG7+fT5urSc AgFmEkUg+shBQRvFzn/JJBcqefjVVE4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1712313862; h=from:from:reply-to: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:autocrypt:autocrypt; bh=ujKJNakC2lY1afOYTNxjDOu1u3voQsxq+lDvp53sD9I=; b=FtpHEAcpdpP5lMTQI3E5MKG4VlaV95PKQiTPtGKvu6NetWZjVJ9AkZLpnMXvSthH838MDA LfDNDkWeg4rlUgDg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=j4++e9W9; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=FtpHEAcp DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1712313862; h=from:from:reply-to: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:autocrypt:autocrypt; bh=ujKJNakC2lY1afOYTNxjDOu1u3voQsxq+lDvp53sD9I=; b=j4++e9W9r8Pl33/JlVK9iLxWXn00q9gdZDwnI9mK7jlrFQkK7wQTbQeOZwe55COg8MDoqP /jvWm/klVqw6x4eCZf6MUvq/3r6tdMjAHeMpm9Jp4QCVjjX/621qDnn/t9YRG7+fT5urSc AgFmEkUg+shBQRvFzn/JJBcqefjVVE4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1712313862; h=from:from:reply-to: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:autocrypt:autocrypt; bh=ujKJNakC2lY1afOYTNxjDOu1u3voQsxq+lDvp53sD9I=; b=FtpHEAcpdpP5lMTQI3E5MKG4VlaV95PKQiTPtGKvu6NetWZjVJ9AkZLpnMXvSthH838MDA LfDNDkWeg4rlUgDg== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 6BEA0139E8; Fri, 5 Apr 2024 10:44:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id Ndv/GQbWD2bpcgAAn2gu4w (envelope-from ); Fri, 05 Apr 2024 10:44:22 +0000 Message-ID: Date: Fri, 5 Apr 2024 12:44:22 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v9 4/9] slab: introduce kvmalloc_array_node() and kvcalloc_node() Content-Language: en-US To: Alexander Lobakin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Duyck , Yunsheng Lin , Jesper Dangaard Brouer , Ilias Apalodimas , Christoph Lameter , Andrew Morton , nex.sw.ncis.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan , Kent Overstreet References: <20240404154402.3581254-1-aleksander.lobakin@intel.com> <20240404154402.3581254-5-aleksander.lobakin@intel.com> From: Vlastimil Babka Autocrypt: addr=vbabka@suse.cz; keydata= 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 EP+ylKVEKb0Q2A== In-Reply-To: <20240404154402.3581254-5-aleksander.lobakin@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spamd-Result: default: False [-4.50 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[18]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.cz:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 9BEFB21A34 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Score: -4.50 On 4/4/24 5:43 PM, Alexander Lobakin wrote: > Add NUMA-aware counterparts for kvmalloc_array() and kvcalloc() to be > able to flexibly allocate arrays for a particular node. > Rewrite kvmalloc_array() to kvmalloc_array_node(NUMA_NO_NODE) call. > > Signed-off-by: Alexander Lobakin Acked-by: Vlastimil Babka This will however cause some conflicts with alloc tagging series with mm tree in next and the new wrappers will have to be adjusted. > --- > include/linux/slab.h | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/include/linux/slab.h b/include/linux/slab.h > index e53cbfa18325..d1d1fa5e7983 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -774,14 +774,27 @@ static inline __alloc_size(1) void *kvzalloc(size_t size, gfp_t flags) > return kvmalloc(size, flags | __GFP_ZERO); > } > > -static inline __alloc_size(1, 2) void *kvmalloc_array(size_t n, size_t size, gfp_t flags) > +static inline __alloc_size(1, 2) void * > +kvmalloc_array_node(size_t n, size_t size, gfp_t flags, int node) > { > size_t bytes; > > if (unlikely(check_mul_overflow(n, size, &bytes))) > return NULL; > > - return kvmalloc(bytes, flags); > + return kvmalloc_node(bytes, flags, node); > +} > + > +static inline __alloc_size(1, 2) void * > +kvmalloc_array(size_t n, size_t size, gfp_t flags) > +{ > + return kvmalloc_array_node(n, size, flags, NUMA_NO_NODE); > +} > + > +static inline __alloc_size(1, 2) void * > +kvcalloc_node(size_t n, size_t size, gfp_t flags, int node) > +{ > + return kvmalloc_array_node(n, size, flags | __GFP_ZERO, node); > } > > static inline __alloc_size(1, 2) void *kvcalloc(size_t n, size_t size, gfp_t flags)