Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1091413iob; Thu, 28 Apr 2022 19:05:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkgxeK4hAunpc8FWwjuXUjyI7IutF52yroR2WgNB0VDUTxhEVj8yrrj41VPT0JrsxR1zRR X-Received: by 2002:a17:902:bf06:b0:156:af5b:e6c with SMTP id bi6-20020a170902bf0600b00156af5b0e6cmr36254642plb.147.1651197958297; Thu, 28 Apr 2022 19:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651197958; cv=none; d=google.com; s=arc-20160816; b=SYuMidCcvb9e48bZq3hWCML6FOzgmzZc5WHTRF66ay6+N0Hz66SJ13T88lLb8ay34V 5jxOC1+e6K0VJ/Q4mgtZy+uhNAoVrJrAPQmB3bm5Rz1WclGw2E+5vBpGHKub16ef30T+ 4NiU+iynmZp5NZfAFk24xu6XsXd54kkvoCaMBdFDGS7GpsTOnbl8+Yt9EImj516ZQyuv MS2zmX2ley1Dy4Ex3PbdKwzXW+RwMv/aDOBJbYo3Y4/9uUPwow1l0MWb/K6Ulql9s3oU nbXq8KJQstIbPaH8K5NcgSI2QOO/QnuuLcHSKCE/dqLFbOKg7uUHi/aOLX9w2ck9ETlT yz+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=HQDXCYk6Wp2fThp27o+RRwGuMEj38RMRp7V9mIoaJbU=; b=luGghAzWboH5czoQl9p8gYNlZZf7xtD1Ig5oJM/dS4SdzevHbz1VQ5P2l3HBhtgLbZ nL6tPFjvNNL13ODYY/gjfQWjCcuLtnXe5VXTCMJNNI+Ei9zCY7sCWbLT87UMzN/qSpSe iz8OUrrQALD1AaX0X7kTJTvF7rXrrI8LMxHOYuJuRIxIRsT7AAlABSQMOqEnPFdfT4GT oNGKIcdsuRuYrQDyoJU7Am8mxt/cbBnA+pSdNBfekV4RMn35m3jAenRi2dgyrlrorzk7 MKPD6YH/CcT6j7w9uQZ+Uc+UYqzNmYxc2qCHFXOc9rf5vFW7eQJXfRaR+LoYE8FcEICo FSvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aH0xMKbG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l193-20020a6391ca000000b003ab2370ea14si5834520pge.560.2022.04.28.19.05.27; Thu, 28 Apr 2022 19:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=aH0xMKbG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237529AbiD2CIl (ORCPT + 99 others); Thu, 28 Apr 2022 22:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbiD2CIl (ORCPT ); Thu, 28 Apr 2022 22:08:41 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ABF1201A8; Thu, 28 Apr 2022 19:05:24 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C762B210E6; Fri, 29 Apr 2022 02:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651197922; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HQDXCYk6Wp2fThp27o+RRwGuMEj38RMRp7V9mIoaJbU=; b=aH0xMKbGX3tLDkIE+w0DSWZemlHZ9Ki3i6uleeG6ICQBueIO9bdIr3YKMKa9kn/yTmkHcu f7wNkMwm29wIPum703Iajuq7/r6zHPt3SKrYINfPlXbIoJjrBm49FbSbVhkvtoOdZs+9cM m8sZG4+MyIUgnqQVJSzoWc9T6rP7/Go= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651197922; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HQDXCYk6Wp2fThp27o+RRwGuMEj38RMRp7V9mIoaJbU=; b=EaIeOX9kGfmK/fCfk5FcomE94id4ubWbX/l+kI52NaQyHKGfx2YYbVWwnfCGjxEPZFdCca BQZK+xIJRQI0nPAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8635D13446; Fri, 29 Apr 2022 02:05:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rlZFEOBHa2JsYAAAMHmgww (envelope-from ); Fri, 29 Apr 2022 02:05:20 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Andrew Morton" Cc: "Geert Uytterhoeven" , "Christoph Hellwig" , "Miaohe Lin" , linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] NFS: rename nfs_direct_IO and use as ->swap_rw In-reply-to: <20220428182353.d79ae288e1bb0cae5116d989@linux-foundation.org> References: <165119280115.15698.2629172320052218921.stgit@noble.brown>, <165119301493.15698.7491285551903597618.stgit@noble.brown>, <20220428182353.d79ae288e1bb0cae5116d989@linux-foundation.org> Date: Fri, 29 Apr 2022 12:05:16 +1000 Message-id: <165119791620.1648.7397114175780668923@noble.neil.brown.name> 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_PASS 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-nfs@vger.kernel.org On Fri, 29 Apr 2022, Andrew Morton wrote: > On Fri, 29 Apr 2022 10:43:34 +1000 NeilBrown wrote: > > > The nfs_direct_IO() exists to support SWAP IO, but hasn't worked for a > > while. We now need a ->swap_rw function which behaves slightly > > differently, returning zero for success rather than a byte count. > > > > So modify nfs_direct_IO accordingly, rename it, and use it as the > > ->swap_rw function. > > > > This one I insertion sorted into the series after > mm-introduce-swap_rw-and-use-it-for-reads-from-swp_fs_ops-swap-space.patch. > I can later fold this patch into that one of you think that's a better > presentation? > I'm happy for the patches to remain separate - though adjacent is good. If they were to be merged we'd need to fix up the commit message. At least delete: Future patches will restore swap-over-NFS functionality. Thanks, NeilBrown