From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70947C433EF for ; Mon, 21 Feb 2022 17:25:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C3ED58D0002; Mon, 21 Feb 2022 12:25:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BEEC08D0001; Mon, 21 Feb 2022 12:25:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB7A48D0002; Mon, 21 Feb 2022 12:25:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 9C8CD8D0001 for ; Mon, 21 Feb 2022 12:25:17 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 69FDB120ED4 for ; Mon, 21 Feb 2022 17:25:17 +0000 (UTC) X-FDA: 79167463074.04.B45358A Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf24.hostedemail.com (Postfix) with ESMTP id 93A9E18000B for ; Mon, 21 Feb 2022 17:25:16 +0000 (UTC) Date: Mon, 21 Feb 2022 18:25:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1645464314; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QNtNFdJSacVr39E6Cf/B3S4hi9OzOvHCrXZBSJUBNek=; b=job64lGFLs88tgOC58oUnEjLgmTTN/A9J2cmQ5n3f8mbEc1EDx5jPctWkm4a6GYNgpaesK q2f73rvblIG506aBx6r+RteEm500eFneFthRRXuneboc+NtM+DbzrViKnc/aRpTwoqVQFX 3h93qN07kfg6iqj2bw7BDieWZy2VjChQp5/OlFZZ5DiQgUBHcOU4apyzZ0E9r8QCcfcp/v DRwo1t8PVH+WGk5TcPOYpXRPx8mi4CsfU3KobPXDQ8nS4/ARZwSj4Ogb7aG97Qx9ysrCYl c73RrA3JxZrUx2PWrpm0AyjE1uCIjgvnp6obFNDBmDOa/P0Zj4CX0ISHmGAepQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1645464314; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QNtNFdJSacVr39E6Cf/B3S4hi9OzOvHCrXZBSJUBNek=; b=kvY/S3SYQUccFr25pdL1pEqU7UlLkvE9bEmvzwN5lEqUVOSwODkgGYnINgGgTZCzfw9FtH 9j6IFmyjlNHdBpAg== From: Sebastian Andrzej Siewior To: Michal Hocko Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Johannes Weiner , Michal =?utf-8?Q?Koutn=C3=BD?= , Peter Zijlstra , Thomas Gleixner , Vladimir Davydov , Waiman Long , kernel test robot Subject: Re: [PATCH v3 5/5] mm/memcg: Protect memcg_stock with a local_lock_t Message-ID: References: <20220217094802.3644569-1-bigeasy@linutronix.de> <20220217094802.3644569-6-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 93A9E18000B X-Stat-Signature: 88w8xsjteauycj8tui5ihmqcaahiqqzg Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=job64lGF; dkim=pass header.d=linutronix.de header.s=2020e header.b="kvY/S3SY"; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf24.hostedemail.com: domain of bigeasy@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1645464316-671829 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 2022-02-21 18:17:39 [+0100], Michal Hocko wrote: > > What about if replace get_cpu() with migrate_disable()? > > Yeah, that would be a better option. I am just not used to think in RT > so migrate_disable didn't really come to my mind. Good. Let me rebase accordingly, new version is coming soon. Side note: migrate_disable() is by now implemented in !RT and used in highmem for instance (kmap_atomic()). Sebastian