Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17C53C2B9F7 for ; Wed, 26 May 2021 10:39:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 933DF61442 for ; Wed, 26 May 2021 10:39:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 933DF61442 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CF7206B0070; Wed, 26 May 2021 06:39:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CA60C6B0071; Wed, 26 May 2021 06:39:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B21276B0072; Wed, 26 May 2021 06:39:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0047.hostedemail.com [216.40.44.47]) by kanga.kvack.org (Postfix) with ESMTP id 7BFD36B0070 for ; Wed, 26 May 2021 06:39:57 -0400 (EDT) Received: from smtpin35.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0B2B6AF70 for ; Wed, 26 May 2021 10:39:57 +0000 (UTC) X-FDA: 78183036834.35.63C08B8 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf24.hostedemail.com (Postfix) with ESMTP id 97157A0001C8 for ; Wed, 26 May 2021 10:39:49 +0000 (UTC) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) by smtp-out2.suse.de (Postfix) with ESMTP id 0DF081FD2A; Wed, 26 May 2021 10:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1622025595; 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=KD821Af/b6RRIHsdgv0g22hq7wVaU0ZGBhHOcUjSdrM=; b=qzYHum4jCmWudPtkF1t+pQnFXyvfT4HZIggrgc/t02N/lrOSENX/d65Y7fIaYjGql2i0zK 3JiBSsKraXPEIbARudiFb5bLzUeunKF6w5B5MN+30KrwkYQJeyCSK98TVKEr/RWWR3mSCq mh/3CEFMU+CWVPpyGsr9EST+IxrH9qc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1622025595; 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=KD821Af/b6RRIHsdgv0g22hq7wVaU0ZGBhHOcUjSdrM=; b=mw4n6QUXmfTZ8CHmQrjbpWWdcYC5kpTmZjjphapFFDOx8ZOWPvfl5CN3JvIQ8ayjExcRD0 xFS+0KWfjs3WbPDw== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id DC7F211A98; Wed, 26 May 2021 10:39:54 +0000 (UTC) Subject: Re: [External] [PATCH v2 1/4] slub: Restore slub_debug=- behavior To: Muchun Song , Stephen Boyd Cc: Andrew Morton , LKML , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Linux Memory Management List , Petr Mladek , Joe Perches References: <20210526025625.601023-1-swboyd@chromium.org> <20210526025625.601023-2-swboyd@chromium.org> From: Vlastimil Babka Message-ID: Date: Wed, 26 May 2021 12:39:54 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 97157A0001C8 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=qzYHum4j; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=mw4n6QUX; spf=pass (imf24.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none X-Rspamd-Server: rspam04 X-Stat-Signature: fc37jahznabwfhscpdnup9parpojf7tk X-HE-Tag: 1622025589-993204 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 5/26/21 6:04 AM, Muchun Song wrote: > On Wed, May 26, 2021 at 10:56 AM Stephen Boyd wrote: >> >> Passing slub_debug=- on the kernel commandline is supposed to disable >> slub debugging. This is especially useful with CONFIG_SLUB_DEBUG_ON >> where the default is to have slub debugging enabled in the build. Due to >> some code reorganization this behavior was dropped, but the code to make >> it work mostly stuck around. Restore the previous behavior by disabling >> the static key when we parse the commandline and see that we're trying >> to disable slub debugging. >> >> Cc: Vlastimil Babka >> Fixes: e17f1dfba37b ("mm, slub: extend slub_debug syntax for multiple blocks") Acked-by: Vlastimil Babka > > Is it caused by the commit ca0cab65ea2b ("mm, slub: introduce static > key for slub_debug()")? Yep, looks like a better Fixes: candidate. >> Signed-off-by: Stephen Boyd >> --- >> mm/slub.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/mm/slub.c b/mm/slub.c >> index 438fa8d4c970..2f53e8a9c28e 100644 >> --- a/mm/slub.c >> +++ b/mm/slub.c >> @@ -1396,6 +1396,8 @@ static int __init setup_slub_debug(char *str) >> out: >> if (slub_debug != 0 || slub_debug_string) >> static_branch_enable(&slub_debug_enabled); >> + else >> + static_branch_disable(&slub_debug_enabled); >> if ((static_branch_unlikely(&init_on_alloc) || >> static_branch_unlikely(&init_on_free)) && >> (slub_debug & SLAB_POISON)) >> -- >> https://chromeos.dev >> >