Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4237659pxj; Tue, 25 May 2021 03:31:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjvLiUjQlzzXruAyGg9SNoxV0k+wb0S5ornyWv5CpIidzYCUgXMb2EqWJTvgWl/DDaKJrx X-Received: by 2002:a50:fe81:: with SMTP id d1mr9353960edt.219.1621938699516; Tue, 25 May 2021 03:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621938699; cv=none; d=google.com; s=arc-20160816; b=TDAXs6MkLH+IYi7dOqbuGNnw6jPM2QuD4JXsIDYpgKhV+Mc5WG4WPAM/US+pxyMnvT CBB3RuGtQcu3YVZkTmUJiEqhBcpTIfN7a8rvP/UcDi1B9tEuX53V2Nn0dhKTPrRc8+cy yi2uEJUt4lZPqFCHcHh0mQlGy+V4PMgsT6SVrjwfG/rkxhoBPcnpctKLcuEs+Cbc6HU2 2PxXF1MoXwsSx1mg7ulFAcqDeQwOun9YceOusq44JmdrlsbLkEK1iZDPRD+gXYJXmhJq gWWtS33wD0WX6KQQ593GD4CQosU1NRuxDeo9WM6pFYVogAfLqQfMHRbqUsgnK3wVr0R2 ommA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=re45x/caz1JWDL9MTERIRsfoYZgR4NixV4CTY8H3oCQ=; b=zSRZwa36JBx75H6AKqqUp/fTMZ/5ejV8H+VXD6FukPjanyXSvRYINBmfBXgHYCwmWt gXHUFBA391M7czZYjywFb8EQglEbdHrnh2IUfT6FCW5jfHDKWD09Kk3I1lz9V0bsf+Ob UBBoB/jqIRpHo97pQen/cVDc+RDLdOJXtXxj8rSQAOrfvqwfelyBsIWA5kuhihwd5f59 B8TvxMkb125n89eiTWLU7aNu/8cBTrn28+m2w6YI4TIIurK5l63swRHCEham3/O8tkfT EpmZzSmxY3m37XYO+VL2tqObgLiJFPdNEFrwIxRr3uHC7shpCxHMnFXC61d7IrMy8HVs yxOQ== ARC-Authentication-Results: i=1; mx.google.com; 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 q17si16560058ejj.672.2021.05.25.03.31.16; Tue, 25 May 2021 03:31:39 -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; 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 S232402AbhEYJNv (ORCPT + 99 others); Tue, 25 May 2021 05:13:51 -0400 Received: from vmi485042.contaboserver.net ([161.97.139.209]:39972 "EHLO gentwo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232199AbhEYJNv (ORCPT ); Tue, 25 May 2021 05:13:51 -0400 Received: by gentwo.de (Postfix, from userid 1001) id D377CB0084B; Tue, 25 May 2021 11:12:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id CDE87B00814; Tue, 25 May 2021 11:12:17 +0200 (CEST) Date: Tue, 25 May 2021 11:12:17 +0200 (CEST) From: Christoph Lameter To: Vlastimil Babka 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 Subject: Re: [RFC 07/26] mm, slub: return slab page from get_partial() and set c->page afterwards In-Reply-To: <20210524233946.20352-8-vbabka@suse.cz> Message-ID: References: <20210524233946.20352-1-vbabka@suse.cz> <20210524233946.20352-8-vbabka@suse.cz> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ....