Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1473359pxp; Thu, 10 Mar 2022 06:12:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrCPEGJRHVwhGYwPAOZKxwri/6zP4wvBUygEy6BPpMRW7zX/cqa6cHr86MBCx489m2UMnf X-Received: by 2002:a17:907:3f9e:b0:6da:842e:873e with SMTP id hr30-20020a1709073f9e00b006da842e873emr4414805ejc.383.1646921555670; Thu, 10 Mar 2022 06:12:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646921555; cv=none; d=google.com; s=arc-20160816; b=y6iTJ9DYOL04OdVi2r9Nrf3vMA5VFxoRHWlRxQM7VO1Oy++f3K1eGvmMt7M1S++7Ej c7b9ut+AtwWFqb45sl956M3FFipnnh/XTCTePv974x/EsNrqXYEESC5f0h8EQeSYwf+C FumVWC8/aCsGqKZ4Dif4jDXhpBlu3Cb8PH3tafDQHW18rabG6dp1ZYmTWFK4mANqutwY ioDLXbysi+Hh5Q2ea1O1FGYSsuya82DZVZ8pMMbYw7orvjBnBw+5WVMzCyyiVb2voORu mbuQC0kJJ9EJ8fgDaLHznK4iWSY8NwO902jSgfQvsJAHbOsA/TLXErsSD1F5336w2Hcs AJQg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=QYoybJRryYmwPgaJ9ZMJlhq3VSC3EaI4oWd0Salhzq8=; b=GealISKJ3cW1lBP45FIjH2lbz+EgqJflXUB1JOKje1QcH2WFNrO+V+h6pqbOSndMKD Ugs/whqx0QqajT/Jf27EJA/sajeZ07inVMcAM7vs+NE7OPvy6p3EbAFSjK9jSYlxcSHs uVxKjF15Vyfc6FNZ6DMdstNkWBLdS0RlvmyHxgyqSU6mG6Oil0IVPi+QfTDQFGR8pGMc Hbew7VvzZd14J9k7KzIxcC9EFL1sl4sUlllsTfsY6uMT0O+TIgJn9pPaJPNKPEZHCXvp EOKGY6iNVz1/rvn9m/EdnbX+ThJ4wLfIHwdD0M1U9V8k/FVcvK0p7EgvMMbWi9l0eLyg dKLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sDQewlcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ky7-20020a170907778700b006b4af70279csi3016228ejc.961.2022.03.10.06.12.10; Thu, 10 Mar 2022 06:12:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sDQewlcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239890AbiCJGr6 (ORCPT + 99 others); Thu, 10 Mar 2022 01:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbiCJGr4 (ORCPT ); Thu, 10 Mar 2022 01:47:56 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D34212F16B; Wed, 9 Mar 2022 22:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QYoybJRryYmwPgaJ9ZMJlhq3VSC3EaI4oWd0Salhzq8=; b=sDQewlcmFcu36Plc0ssMjwdcu6 xABG21CxjYWaSekz0olxZSfCTlCmo8Mhvq0wjUyF61q3WYWn4mJO5jJ+YRNV2FgmHgdHvlvEKS10J Kw9ofVwcAnLSjRiv2hiP8WUV8vDzoO7gvCa8aCC61A1gWW3gvhKFjgXhiY4AIH33exK5udpJC6+WQ LMBSDr7eKStarZPgyLBpw7R5/DJ15UN1G17udcx52OuQOj/GdrvmLlBmPysvBU/hyvE99GuH50u+N LaTQasVqJnNogROVUyJfNCsIdbVDDDlXGMsRWTtLk9VCLznBg5V3CitLMY0ESGKauhy8PdKGxTqkS rmiKZVDA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSCZY-00BePO-KI; Thu, 10 Mar 2022 06:46:52 +0000 Date: Wed, 9 Mar 2022 22:46:52 -0800 From: Christoph Hellwig To: Johannes Weiner Cc: cgel.zte@gmail.com, 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 Message-ID: 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-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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! Can we get proper annotations for those please? These bio-level hooks are horrible and a maintainance nightmware.