From patchwork Sat Sep 10 06:50:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12972429 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 01BA7ECAAD5 for ; Sat, 10 Sep 2022 06:51:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 289F06B0072; Sat, 10 Sep 2022 02:51:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C5636B0074; Sat, 10 Sep 2022 02:51:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDE878D0002; Sat, 10 Sep 2022 02:51:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A34D56B0073 for ; Sat, 10 Sep 2022 02:51:22 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6F18240312 for ; Sat, 10 Sep 2022 06:51:22 +0000 (UTC) X-FDA: 79895254404.04.2A02483 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf10.hostedemail.com (Postfix) with ESMTP id 13834C0079 for ; Sat, 10 Sep 2022 06:51:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=vqMGMaEkOmTqVQylBL+skkFNuiQaEqBjU4MG7KR5LL0=; b=kqYZ5RijV8voK/z0zN+91658ME othEptJ5Jh2KM6dR4Cxso2p8jnG+xQo2M5kHEwh9mo1XVCJT3+LjcQVT86P0gUbIOZqNeFapGyX/h /OdgGVYp+QTVSkxLppYxTFUKdb59n7fqclYWiXunNSvOEQZbHZ7Al4fPyqE+Y7niQJCNcFr1QpNzt E9JUwcNBCafe3zyNEyvt4LB8sGEahpq/lVI09ZRV8hg7amkemarEy1CYLP/bzYggDRP43uf/Xx2Fa L7KwLUlqXcGXEbb1eNQP//XtM7trmDf+dq+zs0ZJyirR+O7PS1uicM9oKe1DTjiDKpApviawkwvvL FHmOX0DA==; Received: from [2001:4bb8:198:38af:e8dc:dbbd:a9d:5c54] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWuKd-006pZX-Fw; Sat, 10 Sep 2022 06:51:12 +0000 From: Christoph Hellwig To: Jens Axboe , Matthew Wilcox , Johannes Weiner , Suren Baghdasaryan , Andrew Morton Cc: Chris Mason , Josef Bacik , David Sterba , Gao Xiang , Chao Yu , linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-mm@kvack.org Subject: [PATCH 2/5] sched/psi: export psi_memstall_{enter,leave} Date: Sat, 10 Sep 2022 08:50:55 +0200 Message-Id: <20220910065058.3303831-3-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220910065058.3303831-1-hch@lst.de> References: <20220910065058.3303831-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662792682; a=rsa-sha256; cv=none; b=795eDhVfWKKeGECVjmiEjCffapvq1TeoBji/gb7uSvcS7CeKECvRXQ99bLNyvqRTISUwgR AVvjUPLLhtl61iDV5d2CsLkD6vMRBn3cs5YuO27bllEU2Iwdn+jXxi4ATAgPaP/3UuWu2x 8v9xd1ZvHMcz3WLfXIcQrBCMMSuUUIw= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=kqYZ5Rij; spf=none (imf10.hostedemail.com: domain of BATV+74593d5eb0e0b46c37a4+6957+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+74593d5eb0e0b46c37a4+6957+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662792682; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=vqMGMaEkOmTqVQylBL+skkFNuiQaEqBjU4MG7KR5LL0=; b=4Wdd2Ft7u+OQgL/ZxucxG6oyenvSYw6xOpoguW26sqnAOvUg5FeX6QRZb0124LHorDKe/1 02z1+LAFBxxkYSHH2m1Q8prWRTzHsrFtpUpU45wX6yKt0jYPTy4FXhr/nlUvDXMmKtrj8c Cuv37t/9SwkweetzPuloq5XKTJP85Oc= Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=kqYZ5Rij; spf=none (imf10.hostedemail.com: domain of BATV+74593d5eb0e0b46c37a4+6957+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+74593d5eb0e0b46c37a4+6957+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none X-Rspam-User: X-Stat-Signature: 99ka8mfpdc73y4qkojnrasdjodncb3ig X-Rspamd-Queue-Id: 13834C0079 X-Rspamd-Server: rspam08 X-HE-Tag: 1662792681-863876 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: To properly account for all refaults from file system logic, file systems need to call psi_memstall_enter directly, so export it. Signed-off-by: Christoph Hellwig Acked-by: Johannes Weiner --- kernel/sched/psi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index ecb4b4ff4ce0a..7f6030091aeee 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -917,6 +917,7 @@ void psi_memstall_enter(unsigned long *flags) rq_unlock_irq(rq, &rf); } +EXPORT_SYMBOL_GPL(psi_memstall_enter); /** * psi_memstall_leave - mark the end of an memory stall section @@ -946,6 +947,7 @@ void psi_memstall_leave(unsigned long *flags) rq_unlock_irq(rq, &rf); } +EXPORT_SYMBOL_GPL(psi_memstall_leave); #ifdef CONFIG_CGROUPS int psi_cgroup_alloc(struct cgroup *cgroup)