Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3921538pxu; Wed, 9 Dec 2020 04:10:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ+P6yEhG5cGlv1ZqW2sQTJG95w4LOF4uqaxpF+msVmoCkAJRBng0h9qiHNUn/BVFbg0c9 X-Received: by 2002:a50:d2c8:: with SMTP id q8mr1587746edg.375.1607515828133; Wed, 09 Dec 2020 04:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607515828; cv=none; d=google.com; s=arc-20160816; b=c5QsoaOoHyK17+LK/ikp6QXLxxRSLGfqaLB56wJX3d0b2S9VQja6WfPAST8BeqcePs E0DUnRMcwqmX6HFpx3NdMOzxx9RQYa3qmOW758jEBms0jw+AC7tBtcUtHdbyFBeouXal cYMwinWdC7wO3hatHpoVHdN7kD5FhphTsPDTPCipI3ochUHGYxw+Gf5BdWZuT5YEFpJc OcBfo7FSm+ANHCfU7PfQBT+roIzwNf2pr65aFcW3CollA/5epTo5mDsHugV1+bCSEXJs XHM7DqecmpTJmW/aF8EkO/IwADE9RiPT5JKkZh4SWZxWNpZbgExdeioJ0DBFZhhi4xH7 WkEw== 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=5t3oRIaMaC7qwxPcnQux4DtmClUR9K6n75chtZH1BU8=; b=SVk33IhADv42mmJlZnTsbMKTcYCNpaYc+Qc0UgIEC0R06hp07rS7pQp7Wz7yqqbo8u 73TZFNNJBkG5VBUCBhVX7PkehqiXG5XmPAylxPPc+WMdGYfUu0UjtLEejsTjGSxbgaAY s/bAnAi3EbIgF4ynCzUkV05tlN816aIk2tFgv5xRrZ7Y85iuKovliOYiCGlyVfuqD812 uj3O9bv8w0CsB602/d5QsFNQAeoLrKxjUcq7lcQDs0rlGQkYGasjsYe7hUb0OwPUZpcZ fA6RmcY/4+HHzdBl78+kf4Hxjlf+ZxBsmIbPrM8T9ai+42Pl4G7sRFYF0HnSePMkF3TX syYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=r230O62V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si658691ejx.4.2020.12.09.04.10.03; Wed, 09 Dec 2020 04:10:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=r230O62V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731307AbgLIMGP (ORCPT + 99 others); Wed, 9 Dec 2020 07:06:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730288AbgLIMGP (ORCPT ); Wed, 9 Dec 2020 07:06:15 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F586C0613CF; Wed, 9 Dec 2020 04:05:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=5t3oRIaMaC7qwxPcnQux4DtmClUR9K6n75chtZH1BU8=; b=r230O62V7u7Rvgpd0cKLkyUe/K ovgQEIRHQd25C33Hkol6I1brBUpaAkemNlaW4op2WydoJnRBR084yBBLWvZkhvyayt4Vq22XMaEFl RnU/IeR9cfCar5LMYh4EmWJeA4n5IOEaJNFJQuMwuEtBUxINsJ65qwaAT9TddHoEG7qN0JGkX2PUn wATz+ejr+lUQkk1NvRbK9PDMW2Z7RWhz2V3i6W0SL8kN4Oh6tdRiSosswUlRIzLRZBvILKMyq4bLM nrqXAyianz2SxmwVfN9PVqznp2wlEIDgya+2l1nGrxYTswq32+IY3LJGS2ZBthrYpM++bIsC4qJIj 4GQNTdIA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmyDr-0002nL-Gw; Wed, 09 Dec 2020 12:05:31 +0000 Date: Wed, 9 Dec 2020 12:05:31 +0000 From: Christoph Hellwig To: Pavel Begunkov Cc: Christoph Hellwig , Jens Axboe , Alexander Viro , linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Wilcox , Johannes Weiner , Ming Lei Subject: Re: [PATCH 2/2] block: no-copy bvec for direct IO Message-ID: <20201209120531.GA9598@infradead.org> References: <51905c4fcb222e14a1d5cb676364c1b4f177f582.1607477897.git.asml.silence@gmail.com> <20201209084005.GC21968@infradead.org> <63057f61-85e5-4720-3532-1a1ba05ab41a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63057f61-85e5-4720-3532-1a1ba05ab41a@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 12:01:27PM +0000, Pavel Begunkov wrote: > On 09/12/2020 08:40, Christoph Hellwig wrote: > >> + /* > >> + * In practice groups of pages tend to be accessed/reclaimed/refaulted > >> + * together. To not go over bvec for those who didn't set BIO_WORKINGSET > >> + * approximate it by looking at the first page and inducing it to the > >> + * whole bio > >> + */ > >> + if (unlikely(PageWorkingset(iter->bvec->bv_page))) > >> + bio_set_flag(bio, BIO_WORKINGSET); > > > > IIRC the feedback was that we do not need to deal with BIO_WORKINGSET > > at all for direct I/O. > > I was waiting for the conversation to unfold, i.e. for Johannes to > answer. BTW, would the same (skipping BIO_WORKINGSET) stand true for > iomap? iomap direct I/O: yes.