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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CF56C433FE for ; Wed, 30 Mar 2022 15:54:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348447AbiC3Pz7 (ORCPT ); Wed, 30 Mar 2022 11:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348446AbiC3Pz6 (ORCPT ); Wed, 30 Mar 2022 11:55:58 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD311DB4; Wed, 30 Mar 2022 08:54:12 -0700 (PDT) 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=zgJahthblrjKbqaY7f2PuA88vk8rig69ldhivBAreas=; b=4GNWGeDvRNOgUTWNDjnzWyeY/C YwODcIN5h+qUhp1m4jVbN8ySsDErdMwols/Kz38AjysIcoNHH+/UCxxURTetyyS3dI8dv2Q2XMugV ylkqjMnWWFUK4H9FGxm4v3Ov4ff9qL6E+adAPbh1Pp+vtAsq30tRUizl0xvcqjzs66+fiEh65mqSS 1YFP8u/dF/MYgtTi3H865KS5PxSAhh4860vBW3u9vGXLB3Bj9m/wh52kbzEeUdDFCKIsvMB1JeyhI g05xaMJ1h8ZQwFoEFMsMp1JMp5pcETAY/14w3iokNjK9Fx/muRe6T93w8zcxB/LAKvOkwfyqjLR5a 6rwBWldQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZae9-00GgSX-PK; Wed, 30 Mar 2022 15:54:09 +0000 Date: Wed, 30 Mar 2022 08:54:09 -0700 From: Christoph Hellwig To: Johannes Weiner Cc: Christoph Hellwig , CGEL , 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: make PSI annotations of submit_bio only work for file pages Message-ID: References: <20220316063927.2128383-1-yang.yang29@zte.com.cn> <623938d1.1c69fb81.52716.030f@mx.google.com> <20220323061058.GA2343452@cgel.zte@gmail.com> <62441603.1c69fb81.4b06b.5a29@mx.google.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Wed, Mar 30, 2022 at 11:45:56AM -0400, Johannes Weiner wrote: > > FYI, I started redoing that version and I think with all the cleanups > > to filemap.c and the readahead code this can be done fairly nicely now: > > > > http://git.infradead.org/users/hch/block.git/commitdiff/666abb29c6db870d3941acc5ac19e83fbc72cfd4 > > Yes, it's definitely much nicer now with the MM instantiating the > pages for ->readpage(s). > > But AFAICS this breaks compressed btrfs (and erofs?) because those > still do additional add_to_page_cache_lru() and bio submissions. In btrfs, add_ra_bio_pages only passed freshly allocated pages to add_to_page_cache_lru. These can't really have PageWorkingSet set, can they? In erofs they can also come from a local page pool, but I think otherwise the same applies.