Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4558005pxj; Tue, 8 Jun 2021 17:58:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPbeVOGxSPZaTr7+RY39EF4J7uYyM8QwlUY1Q8NR0kg6lEjQxm34jHdV5LBw5bh6pGH+zl X-Received: by 2002:a17:906:180a:: with SMTP id v10mr26046113eje.22.1623200326484; Tue, 08 Jun 2021 17:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623200326; cv=none; d=google.com; s=arc-20160816; b=QE3j7NsSwvDzMIfiLmaF24ufhO7oxb1AuvzMeC4FNei/HUIKxgfVrGWv0dSYncShP6 crZ0tIVquXXJyFI1wJZEYSnQkew45Npi8lY/q/1WRbnI6X/n99fBo/Zdh3K0eigBl4+o 1DswAxoMp8u1anIiO6uoPIIcs3664yFd9bimKx5ilOI5UyAsLExsZmfpTpS5nwbE0K0U hA4AUAci5fgX2kKZK1lsxVBBA3nWuXaXUOEBW1FXTGfZhlGkmY3mHFfypoo/htJsX+aN EjMFAUJrj153oMFJCFY6qK6AnGPZep1D5bQbkozoSdT/C+5iFD1AP/+3fdkQUiyeICSp tAGA== 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=5Y/J8Oxrbxf7pNOjDNnn6LhqTrUOzD1NlEUvEz7T1EU=; b=VL3hKl/MmaCRkwfzj2BCKM/DpUiXKUDUR7v6SWOtGSfikqZ5XlBHJiTZFdK0lM8A9j 0WkZL81B2hAAlP/r7Q10jt2A3nU7oPSFDPbE0BdPvqqvP4q4ie2BU3JHO69hfjkd3RKs ISNsGwTxoXRllZZLYjIxmKFiW/hffZcBDLgoJpIfoCCpw6ml/TzAz0RfTyuFbdlt12HS /K4FJxQLoHwlElzlVfUtt5P6Ko3ou/88CJrL1dmBXqrTCf7AQAgv0wBTXcwvQ90s1+nM 6qGmBgFXf524qLl+suBRs8AjCRyCQz/WWF3XLsdt52Way+VxMb4Oz2+/ZHf7j6aylkvu tuPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="WKp/nPQB"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=IO5xwWfh; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="WKp/nPQB"; 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 e16si1232764ejm.5.2021.06.08.17.58.11; Tue, 08 Jun 2021 17:58: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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="WKp/nPQB"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=IO5xwWfh; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="WKp/nPQB"; 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 S232114AbhFHMPS (ORCPT + 99 others); Tue, 8 Jun 2021 08:15:18 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:40510 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbhFHMPO (ORCPT ); Tue, 8 Jun 2021 08:15:14 -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-out2.suse.de (Postfix) with ESMTPS id 3D3A11FD33; Tue, 8 Jun 2021 12:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623154401; 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=5Y/J8Oxrbxf7pNOjDNnn6LhqTrUOzD1NlEUvEz7T1EU=; b=WKp/nPQBucPBdqYMkfXdmyAEV4Arhcf8JqYAVzOIStxlfQG+g1jnipSb5vn+bewNdJv6pn 8RmKQk7/Z56uHr43nYwV6zU0fKENB7CzDnW3ii1QyugjYlFLzIo3AaqS6EOtFOHaKRNAh2 CYNVlkcqrAAqkYaDN3p4OyMNVx5lujU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623154401; 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=5Y/J8Oxrbxf7pNOjDNnn6LhqTrUOzD1NlEUvEz7T1EU=; b=IO5xwWfhc9uWRABkXSIIcIhOP/BND3iIXz9Yt7yH3INYf08+mTI/LY7eGvIMJStptpLbu/ +Y7cTQDKZD99OkBw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 177F7118DD; Tue, 8 Jun 2021 12:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623154401; 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=5Y/J8Oxrbxf7pNOjDNnn6LhqTrUOzD1NlEUvEz7T1EU=; b=WKp/nPQBucPBdqYMkfXdmyAEV4Arhcf8JqYAVzOIStxlfQG+g1jnipSb5vn+bewNdJv6pn 8RmKQk7/Z56uHr43nYwV6zU0fKENB7CzDnW3ii1QyugjYlFLzIo3AaqS6EOtFOHaKRNAh2 CYNVlkcqrAAqkYaDN3p4OyMNVx5lujU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623154401; 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=5Y/J8Oxrbxf7pNOjDNnn6LhqTrUOzD1NlEUvEz7T1EU=; b=IO5xwWfhc9uWRABkXSIIcIhOP/BND3iIXz9Yt7yH3INYf08+mTI/LY7eGvIMJStptpLbu/ +Y7cTQDKZD99OkBw== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id L4AtBeFev2AmPAAALh3uQQ (envelope-from ); Tue, 08 Jun 2021 12:13:21 +0000 Subject: Re: [RFC 10/26] mm, slub: do initial checks in ___slab_alloc() with irqs enabled To: Mel Gorman 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 References: <20210524233946.20352-1-vbabka@suse.cz> <20210524233946.20352-11-vbabka@suse.cz> <20210525130436.GS30378@techsingularity.net> From: Vlastimil Babka Message-ID: Date: Tue, 8 Jun 2021 14:13:20 +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: <20210525130436.GS30378@techsingularity.net> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 3:04 PM, Mel Gorman wrote: > 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. Good point, will use lockdep_assert_irqs_disabled() as that's a functional comment. > Acked-by: Mel Gorman Thanks.