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 4953AC54E94 for ; Tue, 24 Jan 2023 13:33:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234215AbjAXNdA (ORCPT ); Tue, 24 Jan 2023 08:33:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234209AbjAXNc4 (ORCPT ); Tue, 24 Jan 2023 08:32:56 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94094390D; Tue, 24 Jan 2023 05:32:55 -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=E45IznY0HJWboJXuzX57iniIDMpYVHRiJ9SSrvw9h4s=; b=G2VVDWQly6/pVagZpDJEjNn7jw +9AZ4SOxf3Hj16UmAMPowpruPOhIpBEeJndUwZi4Ha82QkBvWq7BDns6v+RpYTZLalQTkbO6aVpSd WkqAkJWXLV4lONJdf685FkxcYz8iD1RfEFVGYBw9J23knps1ALcsvsDRIZP4Bx5RXY5zsneSa2Ms0 Spnstllxnkorwf+82/2b4zkrhdubKqEvrXBI2TDy4aTVGZ+ZxFobMz+ggvPE8K5D7XBIUEaYF+19m peH0WF+HmVfu1fM1fOTyMKMeUMdLAQ2BhBO4b1QUgn563daot55JJpCmQohY7xK0sqT3L/HjrWCKe kAq4TgNg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKJPs-003zT9-Rs; Tue, 24 Jan 2023 13:32:48 +0000 Date: Tue, 24 Jan 2023 05:32:48 -0800 From: Christoph Hellwig To: David Hildenbrand Cc: Christoph Hellwig , David Howells , Al Viro , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 00/10] iov_iter: Improve page extraction (pin or just list) Message-ID: References: <20230123173007.325544-1-dhowells@redhat.com> <02063032-61e7-e1e5-cd51-a50337405159@redhat.com> <0c043cfb-2cdb-8363-2423-d1510006fc06@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c043cfb-2cdb-8363-2423-d1510006fc06@redhat.com> 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-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 02:22:36PM +0100, David Hildenbrand wrote: > > Note that while these series coverts the two most commonly used > > O_DIRECT implementations, there are various others ones that do not > > pin the pages yet. > > Thanks for the info ... I assume these are then for other filesystems, > right? (such that we could adjust the tests to exercise these as well) Yes. There's the fs/direct-io.c code still used by a few block based file systems, and then all the not block based file systems as well (e.g. NFS, cifs). > ... do we have a list (or is it easy to make one)? :) fs/direct-io.c is easy, just grep for blockdev_direct_IO. The others are more complicated to find, but a grep for iov_iter_get_pages2 and iov_iter_get_pages_alloc2 in fs/ should be a good approximation.