From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 BED3B37A498 for ; Fri, 12 Jun 2026 08:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781252238; cv=none; b=M0E2kHZHiBrVtn79zlm3VNh4KXqaFAe+ZJit3c72VyRq1XqV6uLGKsP63hmYI4K+zj5VG6b6cP+Z8eExDzTq2jmWqcSJumI/Uc9/b5aININsIUJJHDb2UrZlQ3Zk8eHlCI+IXOlRqF2cSd0QTUJUDP8wDew6bJ/RKs/6gew0xck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781252238; c=relaxed/simple; bh=wd5h9k0yN4tSA0HQ/in9DttoLpfWKRpPSjUvmpFABQo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Eg19/r58K4D8I6iv9n5v2LjLdXdBR75ApO2bP/igPs3ummIaCOt/vX39n1iyi0s19iQyg4dEuPn2GGXxnZ/m/+Ictus5XqylvKD7+zqjPzZRgrbpYl5ylpWbYszVEwfgITRGRNaC045E5Gwa+gEIGidnKN2czlgJ0gPNI/edpuo= 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=rr9lXiPf; arc=none smtp.client-ip=95.215.58.189 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="rr9lXiPf" Date: Fri, 12 Jun 2026 16:16:53 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781252234; 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: in-reply-to:in-reply-to:references:references; bh=l5txWqMq4PmQdbjrUmIcHFPjy9DNf375GIkFCaQfXUM=; b=rr9lXiPfZZM899yzfUxGqEA/z6DhXDRCL8fJfcFQPxOBcTPnkWmbPyQa5Kb4ANluLPDZhL WYafjB+RD2C8se4zM6X1Hz70DuE2o/r79Ms+w2NVGxRaxeqpGI9k3pNsLPF6hRLR93Pg5m XLlJGQhpxyKiAE5EFlhtc4u0vlVItjw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Li To: "Vlastimil Babka (SUSE)" Cc: Harry Yoo , Christoph Lameter , David Rientjes , Roman Gushchin , Suren Baghdasaryan , Alexei Starovoitov , Andrew Morton , Johannes Weiner , Michal Hocko , Shakeel Butt , Alexander Potapenko , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 16/16] mm/slab: replace __GFP_NO_OBJ_EXT with SLAB_ALLOC_NO_RECURSE for sheaves Message-ID: References: <20260610-slab_alloc_flags-v2-0-7190909db118@kernel.org> <20260610-slab_alloc_flags-v2-16-7190909db118@kernel.org> 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 Content-Disposition: inline In-Reply-To: <20260610-slab_alloc_flags-v2-16-7190909db118@kernel.org> X-Migadu-Flow: FLOW_OUT On Wed, Jun 10, 2026 at 05:40:18PM +0200, Vlastimil Babka (SUSE) wrote: > Finish the switch away from __GFP_NO_OBJ_EXT by replacing it with > SLAB_ALLOC_NO_RECURSE when allocating empty sheaves. Pass alloc_flags to > [__]alloc_empty_sheaf(). Callers that can't be part of a recursive > kmalloc() chain simply pass SLAB_ALLOC_DEFAULT. Use kmalloc_flags() > instead of kzalloc() for allocating the sheaf. > > This leaves __GFP_NO_OBJ_EXT with no users in slab, so stop allowing the > flag in kmalloc_nolock(). > > Signed-off-by: Vlastimil Babka (SUSE) > --- Reviewed-by: Hao Li -- Thanks, Hao