Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp898660pxp; Wed, 16 Mar 2022 20:35:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzACHELOkxGhpMC8Vc/XaVVy4FD7mb+Jo4V/gHvfTJ3s34g+gFVnZyKAC0Zof0c8EA29ol X-Received: by 2002:a63:4403:0:b0:375:6d5b:5aa7 with SMTP id r3-20020a634403000000b003756d5b5aa7mr2021019pga.269.1647488110883; Wed, 16 Mar 2022 20:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647488110; cv=none; d=google.com; s=arc-20160816; b=1LszY1HXBwKLeZS17NeiPOVxd1s8PLqgwv19Uhp6GgULftw330xAupaRIB7U+MV6kq nuPOWKIx4fNSUlWVBZvM/++5+4R11rvpmLT5k6cUHou4URqQ+ekNadkJeaoDTprqHYLA jlEhIZJm2QK5f/s5KopPZcEVR29kkqcRbuXiVxGdOy+t7bZUgSrbFaIMKKDUoS3J2KEI tkfUqv0Fsa+69EuFcd7POpH4bz4D7J7OLCEZMHb77vQk5MnNdwU3G5uBO+Bmr7bOq5fz GxT1Fb0FwGqOmh0pF1TdM0JP/FH5vzDhn6wbYK45KO9LfMBFeoTkfvQoPert6PHJV9B2 EQtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:subject:cc:to:from:date:message-id:dkim-signature; bh=2j1k6udki+IUT8t4y+SO0EekjaGf0Ggc9U0FBMw0ySM=; b=qIFDJc72AWvBQqt3I5nzjIT0zPAwXtaIWwnmshhAI8baZ9YGBpk//y/jyUZHHDQYTl TN5+iAnJX59ubyoWwVAZ++i+nB6gIataJvlxrZfDg6m59a+9jZSEFLjKRla0qlHqPKTS TN3xrrptwM1xtwBvtBePjreaeLKhzCirK/FUjdx4d/l7kO6eWbpKV1yOtwb+hiZHTp0j 0TH7Md0JbsqK3yDjHxldVL185AQa4c0xK76x2JAvSCy7M5QjlvlK9a0eH0mIhOvVUXZe cAyP90J4/73prqTEfrOvNfsgTzgfnHZLNAJmd+KHOgKJyEgEe32NeH4ey82pb/zwUngD wpew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BVc1Haw4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w7-20020a634747000000b003816043efdesi873132pgk.467.2022.03.16.20.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:35:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BVc1Haw4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 382A14C432; Wed, 16 Mar 2022 20:30:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiCPEAX (ORCPT + 99 others); Wed, 16 Mar 2022 00:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiCPEAV (ORCPT ); Wed, 16 Mar 2022 00:00:21 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D7E1A3A9; Tue, 15 Mar 2022 20:59:08 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id u17so2145481pfk.11; Tue, 15 Mar 2022 20:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:from:to:cc:subject:references:mime-version :content-disposition:in-reply-to; bh=2j1k6udki+IUT8t4y+SO0EekjaGf0Ggc9U0FBMw0ySM=; b=BVc1Haw4J+7O1LlCY6oEmAcnC24ZZjBwISPZqoKNcNjRuio8hYNKthG4zKv37ASwiQ onj26deMuQy3In9hXn9QBh3ZUR1uGOg/q3aIR5iTlnYRKXd55t0NPpdcZ25EdEAfiRZ7 zwN6Ay3R36Ixs2sIrBNMnggKFkNeAy5tOtX9ZEcYBBX15tbXilwhx3f+p0w/QeOOm+dL zPoSko2F57P0V1Vvmbz4tdWqEHrsw4xCBlMnOrOTxn5o8dvtE1fafqrvDvtjdEeVRI9I SDf0tzeM+Z0LtifZsGulK8XIEejZIk0wPr+uezkLO5ePd4QjQcwXhhH7dPWpTXVX/La0 /6AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=2j1k6udki+IUT8t4y+SO0EekjaGf0Ggc9U0FBMw0ySM=; b=NA7iuhuKmZAl4ctCqX6RiGT6aYv9sLhamBOFw9m/nUR0+E6Xji73VHXpfURd1X3hJP KdMH7ksWeIeQnoVxV06rg3O04d8doT2rLzZLYgDGbSOZCNpS8Urz+yVf5y7U7PaLh9Rc q/7Q8KROFN//eo+GEHFCh2dk6ZAhtYL3i2ekt55gEssD9GPtjkRkV8e0BR8Vwx4xSBxn JOoTfQ7ebXcavcST6YjDVjp2bkeLqRME0clrtS8ndTvoZay7v2QToLKce+90jpRo5FQe hqcKPw07bMA9bLtZvLG0xbN9mUE0qdHBfRxxzl22V5bMyBY+2yHP75MSrIquG/Y8uhe8 Qh/g== X-Gm-Message-State: AOAM530bNF8FUXWxQZal0evGNJKqkZDsNPywaRYBcDTsShm3QLigiJRb Scw6O9r2dVPPYcSejkk8JCnHHB8JZFY= X-Received: by 2002:a05:6a00:1515:b0:4f7:6d54:6224 with SMTP id q21-20020a056a00151500b004f76d546224mr31242895pfu.4.1647403147904; Tue, 15 Mar 2022 20:59:07 -0700 (PDT) Received: from localhost ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id s8-20020a056a0008c800b004f664655937sm727103pfu.157.2022.03.15.20.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 20:59:07 -0700 (PDT) Message-ID: <6231608b.1c69fb81.961b0.2e1a@mx.google.com> X-Google-Original-Message-ID: <20220316035905.GA2127127@cgel.zte@gmail.com> Date: Wed, 16 Mar 2022 03:59:05 +0000 From: CGEL To: Johannes Weiner Cc: axboe@kernel.dk, viro@zeniv.linux.org.uk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, Yang Yang , Ran Xiaokai Subject: Re: [PATCH] block/psi: remove PSI annotations from submit_bio References: <20220309094323.2082884-1-yang.yang29@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 09, 2022 at 02:18:19PM -0500, Johannes Weiner wrote: > On Wed, Mar 09, 2022 at 09:43:24AM +0000, cgel.zte@gmail.com wrote: > > From: Yang Yang > > > > psi tracks the time spent submitting the IO of refaulting pages[1]. > > But after we tracks refault stalls from swap_readpage[2][3], there > > is no need to do so anymore. Since swap_readpage already includes > > IO submitting time. > > > > [1] commit b8e24a9300b0 ("block: annotate refault stalls from IO submission") > > [2] commit 937790699be9 ("mm/page_io.c: annotate refault stalls from swap_readpage") > > [3] commit 2b413a1a728f ("mm: page_io: fix psi memory pressure error on cold swapins") > > > > Signed-off-by: Yang Yang > > Reviewed-by: Ran Xiaokai > > It's still needed by file cache refaults! > > NAK What about submit_bio() only counts file cache refaults? This will reduce redundant calling of psi_memstall_enter() for swap_readpage().