From patchwork Thu Sep 15 09:41:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12977123 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 CE836ECAAA1 for ; Thu, 15 Sep 2022 09:42:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3B00C6B0071; Thu, 15 Sep 2022 05:42:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 338F56B0073; Thu, 15 Sep 2022 05:42:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DA628D0001; Thu, 15 Sep 2022 05:42:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 0F70C6B0071 for ; Thu, 15 Sep 2022 05:42:21 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E6B7F14081B for ; Thu, 15 Sep 2022 09:42:20 +0000 (UTC) X-FDA: 79913829240.20.F9E663F Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf23.hostedemail.com (Postfix) with ESMTP id BEFE41400BF for ; Thu, 15 Sep 2022 09:42:19 +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=f10ud+4Yk8zuOd0FwaSc+xsLEXHksvzyDOLFsDza1gY=; b=Z0mbKLDUJODd7WIJH7zNtS2L90 vOmMj4hDPPXiSDw+aMBTpUxgy0asgtgfV+4+J+l4oS+R2K/YUyuJ8I/elEQRBtiYerT7+cF5+veE0 As2MLe9Jh+crJYKoXZY8Yx6HDQSgstxsDLr8ptgQnaOoxvx+vyNis0c4HBZ1yJWMJml91LbKDJ6sT o8ABQhBEkp2KFWBYACzfFvirFth7WnnmAhhowLIfySIykeZwWp4JCLieTfsniUw4AZwmamm7MT3nC xxaJOz0cCYfhy3q/EURHz/sxkq0xwdjKLYezjVO8xCGkodJzvbpVbeUUBWYy02JEErH3z9SzjWEdA jKe0ukpg==; Received: from [185.122.133.20] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYlNn-005b1k-MR; Thu, 15 Sep 2022 09:42:08 +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: Thu, 15 Sep 2022 10:41:57 +0100 Message-Id: <20220915094200.139713-3-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220915094200.139713-1-hch@lst.de> References: <20220915094200.139713-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-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=Z0mbKLDU; spf=none (imf23.hostedemail.com: domain of BATV+aa90abf7a61f323a8d2f+6962+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+aa90abf7a61f323a8d2f+6962+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663234940; a=rsa-sha256; cv=none; b=bOxybFSA/wRdiD8OjQuKeoPxdoC73JDfi7ufMAUtTmX56XyadZAZjE5rO04f2BSAg1pOur Bs90Yh5TybLyoh/gMHkPChIQn5qLQPsRpWnV9mrhjHSTd7jYouLKmck9IGpxpgSFZ2c9He C9AwaAPv1HDQ+uOH6RzQFTXMDIEp9vA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663234940; 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=f10ud+4Yk8zuOd0FwaSc+xsLEXHksvzyDOLFsDza1gY=; b=YmtNvwAM3TPnQ4RqJ7gVqpRA8tK8+fw9LUD3MW6jC12kZ19svdSZnaloE0R1DAXLqULmaN C/jnXri5BviGIGWIG/n3bStjq8h5YpJd8OLZnI1EeHlHD9KQQeSf19rnQBDRaOeN/K1jww bmiSl08EcTHpoOe6C5tpdJrkYcrjatc= X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BEFE41400BF X-Rspam-User: Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=Z0mbKLDU; spf=none (imf23.hostedemail.com: domain of BATV+aa90abf7a61f323a8d2f+6962+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+aa90abf7a61f323a8d2f+6962+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none X-Stat-Signature: ome6yes7sdkm1c6p8w5mpdqe1b7we3bq X-HE-Tag: 1663234939-266566 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)