Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4347573pxj; Tue, 25 May 2021 06:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNBY2WrIHuNMWRWz5d3pCTlPzNJhysh6gqOqIXBRzpAjr1pslAcIFThvMbK9WK+lYte7A7 X-Received: by 2002:a05:6e02:927:: with SMTP id o7mr18485335ilt.35.1621948006883; Tue, 25 May 2021 06:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621948006; cv=none; d=google.com; s=arc-20160816; b=pjNfsfIPbn/myiSiCXRsuFgIGD4tt0bT2Wr02kFFRBsN8wK7iN/4Bt8dFVQi2PQd+N bOASVWZH6o88G2aav3d9fUc3cFF6H+WY4b4uwRmkNMImcFJ8J9aSo6P4D5MkjJJNTH7m rSwJspxpj0WL/UVjuFEBDY8C64pLDdRSj7XNI1YyX4Ojnyu7Uipmuld0u4HJ+jvxb4NF 8K0y/OUUFZnRUw0O1G6hmzmnc2u6562AKuhEmbQGAGmTAuc94CFtFL8q/aLWww+tW9eC HhGoF7JDUdLOOeGYYwX31SAGZB4PQLmdbPn1AA5xMgWiKvRTD5HkTOVGQ+4ho6/uP9Jz I4bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Ja3oDSUhb6D7KZyHdpfAwKlpUpHLaZoaPpfOCJa/b8I=; b=WGrJmfOkX4tAlN5X5IBtiBxSNC8BtiaaSm3SInlDE+IIczbu9JhIGr7Xy6CkMzIx+u ZS8oy/KlOrVishTZr9AU0Myke+DUbTgEZFovUvt3cLxBwLCsIxj5WSnIan9v5cRiez4Y C8Nc44GN9UoxcoFNMlEPfymRAJT39qN/fwx9sBnJeEKG/RsCF9luniZwTkVLvTy78q2p UxZ1kLnYlRukmay0TwtMEWN7fz+QQQjd/+iKak1NgyKru8lIQCmz9KQJi2X2tocisLLr cLQx2ZW5h4/17T5xMUdJ0PNC9H+PLPvTDGsOtJhAbf77Yd2gtqMX6KD+gkcRQgH5g04y 1zRg== 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 e1si18286513jap.46.2021.05.25.06.06.21; Tue, 25 May 2021 06:06:46 -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 S232988AbhEYNGJ (ORCPT + 99 others); Tue, 25 May 2021 09:06:09 -0400 Received: from outbound-smtp27.blacknight.com ([81.17.249.195]:46696 "EHLO outbound-smtp27.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbhEYNGJ (ORCPT ); Tue, 25 May 2021 09:06:09 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp27.blacknight.com (Postfix) with ESMTPS id ADA3CCACD6 for ; Tue, 25 May 2021 14:04:38 +0100 (IST) Received: (qmail 31438 invoked from network); 25 May 2021 13:04:38 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 25 May 2021 13:04:38 -0000 Date: Tue, 25 May 2021 14:04:36 +0100 From: Mel Gorman To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Sebastian Andrzej Siewior , Thomas Gleixner , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn Subject: Re: [RFC 10/26] mm, slub: do initial checks in ___slab_alloc() with irqs enabled Message-ID: <20210525130436.GS30378@techsingularity.net> References: <20210524233946.20352-1-vbabka@suse.cz> <20210524233946.20352-11-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210524233946.20352-11-vbabka@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 01:39:30AM +0200, Vlastimil Babka wrote: > As another step of shortening irq disabled sections in ___slab_alloc(), don't > disable irqs until doing initial checks if there is a cached percpu slab and > it's suitable for our allocation. > > Now we have to recheck c->page after actually disabling irqs as an allocation > in irq might have replaced it. > > Signed-off-by: Vlastimil Babka Minor nit only -- consider adding a comment at the new_slab label that IRQs must be disabled already. Acked-by: Mel Gorman -- Mel Gorman SUSE Labs