From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 2C6A91494D9; Mon, 25 Aug 2025 12:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756125621; cv=none; b=S89BPqRNzKWgKxgB5diY8Aaz1/+dcQRfA4rO0Sb1ZgJFbnPdZ6aluz8Bt5ageZYBEe4+ma8+Q9dRXAntRN3/j3U01FZm7FIDkGaVZErDPNtr5lISt0D6Hru5a1K7ksLSyIitid2rLTgzhu9bODtjpRAxY+RfClE3pVnkW9TFAQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756125621; c=relaxed/simple; bh=uitKs38zSaKsACMqL/VBCSaoOH5sQqG5ek7vhydclZM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AFd9L7JnHb6yB5TIdBFmr/X5Tuw1yAJnllY7lRqZI/ePF2ptLogP7qBaP4J9fW5Wf6mCCBd80l1woqcUjvP5kYnbL9W78nSEUPqMtRpTG1c7SlbDcp4y3MrPJ1oh2TApjv2fk6p606CwP/GaBvlpu/OMfJPN/lRZEgWKdFbbpqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=FS/r42Ov; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="FS/r42Ov" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SV07zR4F1l/OSOnyqjvj3Wbmda/ishTOLR/wNk9yGwA=; b=FS/r42OvitRP7F7YpcelzC+BCl A0kN2vM014Ycmx6Vcazxtd8GKa0pMdQ0vjix6z9aenEjIU46o1CHDekhl21Am4ZciyjNJXdmo8hvw JhBf+48BDzDCRT/1lGsgYh1SLVkhIykBEiTPgVJtFC2VxLtbF5hwDKaiA0PAg/prvnS2xeqU2e2gr XMc6RlozPj5jQ4y/HV3LwAIN3X+RGR7SuYU6amyXISkN49xSxcljtvUItZzcAJQ6fpNE+6pHHzyOm NRYhk0zMcvtkbK6KO5vsFwGrLyT7RhcTLqnyPY/p5IpW+yJJxTukercU/ogHDo+YnBkW1wx/ij2v2 fj6m861Q==; Received: from willy by casper.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uqWUZ-0000000DqjD-1and; Mon, 25 Aug 2025 12:40:07 +0000 Date: Mon, 25 Aug 2025 13:40:07 +0100 From: Matthew Wilcox To: yangshiguang1011@163.com Cc: harry.yoo@oracle.com, vbabka@suse.cz, akpm@linux-foundation.org, cl@gentwo.org, rientjes@google.com, roman.gushchin@linux.dev, glittao@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, yangshiguang , stable@vger.kernel.org Subject: Re: [PATCH v3] mm: slub: avoid wake up kswapd in set_track_prepare Message-ID: References: <20250825121737.2535732-1-yangshiguang1011@163.com> 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: <20250825121737.2535732-1-yangshiguang1011@163.com> On Mon, Aug 25, 2025 at 08:17:37PM +0800, yangshiguang1011@163.com wrote: > Avoid deadlock caused by implicitly waking up kswapd by > passing in allocation flags. [...] > + /* Preemption is disabled in ___slab_alloc() */ > + gfp_flags &= ~(__GFP_DIRECT_RECLAIM); If you don't mean __GFP_KSWAPD_RECLAIM here, the explanation needs to be better.