Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4552349pxj; Tue, 8 Jun 2021 17:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPFOgn0rwAU3jfeosykNRfVULKgkX2fI2esybHFULRrxu7a/scRgSh3/1DSGyBHfiM+Fkv X-Received: by 2002:aa7:c857:: with SMTP id g23mr11533172edt.100.1623199623410; Tue, 08 Jun 2021 17:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623199623; cv=none; d=google.com; s=arc-20160816; b=0vv2glvn6rD+9WZjOsSglo7jZLA1VkMEcwWviUwSfWCCNVCyG5Ik1RmJMHIMxeap4V 6DEMZSMFpfHCO/QclSpuVkMLbBV3gdtVbz8OJ9YwjCHvn232seAjlVXvc129pIXnKNEo 2uMS4mjzopWmSl5Wj6ffBrYYPlgCtqP3a/ZBcun6E3AK2/xjwwEDXA/hWRT2ZyUCEI9X KBIG/8EwFQzUJt15v/EZVLFFYRWEAmmfBcJ8AYwmA2I/FWXsjdEsjRCIcxLn9k5pTv6e +LuxXfbQNL9drUE/gHbsV8peT5eLL3lPjIk/epcSGpA5TZ9NftVTSSt9EVvp8LxsQhyc gnkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=tZsEvbC1p0tXnhDc/Am2zDqhVkzjQSH0hjGod4w1KOE=; b=ehLvo+j/GisN7oMHIi1DmiQVWjZ1CBK4p/2L+vedZrE4KE5HTQQivkIWlQBj6cUaPN IocDU9Nu3Lc0lPBhNWOf6Aay/SWaX/WHnoZJBo7Za8U3KOP/wnbJ3jm9u0rsanWFnByJ j13lpQmYvI/I+pkkV1876gPLtsTSSyzFnmqTTOpTIxZhjQjkPArLQppb+1Me3lWZmDD3 cyEIT1iHCFjR3JRtkDPbT2bc6Q8AJZU2k/J7Kkv1v+Ch1H9JAdZv41p8uk4Hes3tWE+o CtbZbaExqe6b3twU6F82KvkVMIai13psc6ei+7fIz7PjTEL9L/f+geTqxP684HcvTqjn oQ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zLyORY0J; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zLyORY0J; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si1064476ejn.250.2021.06.08.17.46.39; Tue, 08 Jun 2021 17:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zLyORY0J; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zLyORY0J; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbhFHKur (ORCPT + 99 others); Tue, 8 Jun 2021 06:50:47 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:43372 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbhFHKuq (ORCPT ); Tue, 8 Jun 2021 06:50:46 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E75D5219AA; Tue, 8 Jun 2021 10:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623149332; 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; bh=tZsEvbC1p0tXnhDc/Am2zDqhVkzjQSH0hjGod4w1KOE=; b=zLyORY0JbULE9aCi4tyMq+wcEtJX/NcHAWSHLgRsjTi72FphC6XeniKZbu0rpI/S60Ry4o Zo5L8vU7bYmlk6u8Bd3KT1G0xlTryJOTqhRg03Eom21DQ/wiRxK5LmHe00XOnDRImLK+2a ts3HnHqzOqwUvVq1otMxhMJT5uQmAT8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623149332; 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; bh=tZsEvbC1p0tXnhDc/Am2zDqhVkzjQSH0hjGod4w1KOE=; b=daeq+qApEUqx7LyDv6hWzIzCfd9+cdvCGZxciY4QBLDfTClf+/H5ajpbPpxxN4dDeOusUg tArBFxWocwKQwRDQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id BEE6E118DD; Tue, 8 Jun 2021 10:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623149332; 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; bh=tZsEvbC1p0tXnhDc/Am2zDqhVkzjQSH0hjGod4w1KOE=; b=zLyORY0JbULE9aCi4tyMq+wcEtJX/NcHAWSHLgRsjTi72FphC6XeniKZbu0rpI/S60Ry4o Zo5L8vU7bYmlk6u8Bd3KT1G0xlTryJOTqhRg03Eom21DQ/wiRxK5LmHe00XOnDRImLK+2a ts3HnHqzOqwUvVq1otMxhMJT5uQmAT8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623149332; 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; bh=tZsEvbC1p0tXnhDc/Am2zDqhVkzjQSH0hjGod4w1KOE=; b=daeq+qApEUqx7LyDv6hWzIzCfd9+cdvCGZxciY4QBLDfTClf+/H5ajpbPpxxN4dDeOusUg tArBFxWocwKQwRDQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id qba1LRRLv2BCDQAALh3uQQ (envelope-from ); Tue, 08 Jun 2021 10:48:52 +0000 Subject: Re: [RFC 07/26] mm, slub: return slab page from get_partial() and set c->page afterwards To: Christoph Lameter Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Rientjes , Pekka Enberg , Joonsoo Kim , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn References: <20210524233946.20352-1-vbabka@suse.cz> <20210524233946.20352-8-vbabka@suse.cz> From: Vlastimil Babka Message-ID: Date: Tue, 8 Jun 2021 12:48:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 11:12 AM, Christoph Lameter wrote: > On Tue, 25 May 2021, Vlastimil Babka wrote: > >> The function get_partial() finds a suitable page on a partial list, acquires >> and returns its freelist and assigns the page pointer to kmem_cache_node. > in kmem_cache_cpu ?? > >> In later patch we will need more control over the kmem_cache_node assignment, > > kmem_cache_cpu? > >> so instead return the page pointer to get_partial()'s caller and assign it >> there. No functional change as all of this still happens with disabled irq. > > Instead of passing a kmem_cache_cpu pointer pass a pointer to a pointer to > a page .... You're right, confused the two structures here. Fixed, thanks.