Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2908131pxv; Sun, 25 Jul 2021 09:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzovB4MTlFg4t+IBnO5JblnXpBJjCXD+vtPiN/i97DFKPbvhdNOrALrHo8PjHeDalZ9qrfQ X-Received: by 2002:a05:6e02:1aa2:: with SMTP id l2mr9465620ilv.224.1627230643444; Sun, 25 Jul 2021 09:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627230643; cv=none; d=google.com; s=arc-20160816; b=Nv7rEsyVzELZpf5OcXnaqMDsz8GaEz+VDkmjrdr0Y/bIA9OqSoT77X568YniJ1kV42 FFCtsDvKlOUEKuqcfOe8OzOH3vvZM1wL37NdD9uwVhTsGk4NrT/FmeOlaGEIVd0ZNrjw na0uYHnm89c+hswSKYz/GXHMNOAowl/NHWous135yQCsOZbZdNecvHuHccQTcpdqfuoH mSVf4bb7AaxD1tch37ufmtIDJ6bjRmizmq8x6NDNvqrd7TRjFYvppY/yZGfMdxIu0fge TKJQnhfchApriSdoRYbTiXmyu1LvPmwrSXgTxyWMGHe0MRPiZlKUONDSCvi2T4nhcXMA 29Rw== 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; bh=gdVEO3E3GIUf8IVTTxVpGFWvViaWrosGZEQQV0SOYHE=; b=hCR6Ouuxml7Rbb+2T+0Ew39pExV9fbQnPmog2o5oxxstwFwcDdX0DRHAkSbRpu5klA X7NPn5zzJafMhSF4IoWr8Jnm5zFbk9/3PaiNcvEzROf/zHJh25+R3PsVeqxda029wUDl CVGpmiKA01wRprkJ/hHQNctcA6oYr7HEIoaSSHEWZxi/WVgw42G5a4R6qiZ3GbtsJx5C A/gbxO4L4Ym1gwtsW4EMOpvKWRbo/wFf18cYKKCDD+tolCL580MTX4F+Y6C7imzw0A3T clcVxldANdEhFPNjirpJhsUzKuOH5euTQBLKV1gJZKBKpctk9+impUrjXBZwzdr3r0wJ ucyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2oDlP2Lj; 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 w12si41261278ilv.127.2021.07.25.09.30.19; Sun, 25 Jul 2021 09:30:43 -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=2oDlP2Lj; 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 S230217AbhGYPrY (ORCPT + 99 others); Sun, 25 Jul 2021 11:47:24 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:45620 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhGYPrY (ORCPT ); Sun, 25 Jul 2021 11:47:24 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2107A21F09; Sun, 25 Jul 2021 16:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627230473; 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=gdVEO3E3GIUf8IVTTxVpGFWvViaWrosGZEQQV0SOYHE=; b=2oDlP2LjD0+A4KweLjtLeJQiBCntpkEK/HkzIvcENbR7dNktCH6x7NpZRJrKXwVx0lT9fT 4Tm9b+tKWPYPgGCw9ztVVGDPKxAESeTte/M6aEXq3y4xKde8OCwuyUjW4PFPW0rNtNprIQ +jMAyRLRNlpSJvfGfb/yiGSHlHLM8+c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627230473; 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=gdVEO3E3GIUf8IVTTxVpGFWvViaWrosGZEQQV0SOYHE=; b=u/DbxoGu9W6NQT0fxlOdp0nbiQUXILcSaTiQBNODZGcsQz6Ehpc8lBY/AfeGZk531elHku hVOlx9NrB6GCcMBw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id E13EF13277; Sun, 25 Jul 2021 16:27:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id aWF3NQiR/WDUJAAAGKfGzw (envelope-from ); Sun, 25 Jul 2021 16:27:52 +0000 Subject: Re: [rfc/patch] mm/slub: restore/expand unfreeze_partials() local exclusion scope To: Mike Galbraith , Thomas Gleixner , LKML Cc: linux-rt-users@vger.kernel.org, Mel Gorman , Sebastian Andrzej Siewior References: <87tul5p2fa.ffs@nanos.tec.linutronix.de> <8c0e0c486056b5185b58998f2cce62619ed3f05c.camel@gmx.de> <878s2fnv79.ffs@nanos.tec.linutronix.de> <6c0e20dd84084036d5068e445746c3ed7e82ec4b.camel@gmx.de> <7431ceb9761c566cf2d1f6f263247acd8d38c4b5.camel@gmx.de> <240f104fc6757d8c38fa01342511eda931632d5a.camel@gmx.de> <69da2ecd-a797-e264-fbfa-13108dc7a573@suse.cz> <84a7bd02cf109c6a5a8c7cc2bfc2898cb98270aa.camel@gmx.de> <5be1a703-9a0a-4115-1d69-634e5e8ecefd@suse.cz> <76dedfc3-0497-1776-d006-486b9bfd88da@suse.cz> <72a045663bf8f091ae11dd328d5e085541d54fcd.camel@gmx.de> From: Vlastimil Babka Message-ID: <18ca0ce9-3407-61e1-31d6-5c48e80eb5bb@suse.cz> Date: Sun, 25 Jul 2021 18:27:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <72a045663bf8f091ae11dd328d5e085541d54fcd.camel@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/25/21 5:02 PM, Mike Galbraith wrote: > On Sun, 2021-07-25 at 16:16 +0200, Vlastimil Babka wrote: >> On 7/25/21 4:09 PM, Mike Galbraith wrote: >>> On Sat, 2021-07-24 at 00:39 +0200, Vlastimil Babka wrote: >>>> >>>> If not, then I would expect this to work (I don't think they ever nest >>>> in the opposite order, also lockdep should tell us instead of >>>> -ENOBOOT?), but might be missing something... >>> >>> Yeah, like #ifndef CONFIG_PREMPT_RT at the bottom of the loop that our >>> useless damn eyeballs auto-correct instead of reporting :) >> >> Well doh, good catch. > > I never did see it. I got sick of saying "but but but", and did make > mm/slub.i, which made it glow. Glad you did. >> Hope fixing that helps then? > > Yeah, though RT should perhaps be pinned across release/re-acquire? Probably not necessary, this_cpu_cmpxchg() will effectively recognize being moved to a different CPU. Might also move __unfreeze_partials() out of the whole loop to avoid the relock. Yeah that should be better. > Actually, local locks should rediscover the recursion handling skills > they long had so such RT specific hole poking isn't necessary. There > previously would have been no ifdef+typo there for eyeballs to miss and > miss and miss. Hm, now I'm realizing that local_lock() on !RT is just preempt_disable(), i.e. equivalent to get_cpu_ptr(), so some of the ifdeffery could go away? > -Mike >