Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1513172pxp; Sun, 6 Mar 2022 17:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+tQQr2iPOBJW5mdkMpNfCsNM5ooASX04vaKAixOm/qeeLpnsx5ZOuatnfzgSRav2rrhVx X-Received: by 2002:a05:6a00:23c5:b0:4f7:878:850f with SMTP id g5-20020a056a0023c500b004f70878850fmr1410433pfc.80.1646617489309; Sun, 06 Mar 2022 17:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646617489; cv=none; d=google.com; s=arc-20160816; b=QcLgw1Sw7a3FJAip/1Ho1ZDa6zw257RDIEzQLf5PWtI/eV86Jddc8OvJ3qmwJdu0We HMmb2EAYNYNjgkBBDCpDCk1PZZLPlEZj5RZsE94FeJxgVXQrBiJbgNEoHQxYnAyQmOLe IPlEYuQj2LLazbmorWTVLnA94gmVl53yyJMyM1zGV513Cx+9VMAc9Kz9J+LLO2T6Q7e9 dWBN2SmV9DPwpSlwGRkFf5rQT4Kecmo5rTdKcgrLz+IMqJmSOssaA0Z/9xITqGqxFCsn fq5gd6ZSq6t+knd0wx84lAbxfw6IJMVi1mQaBHAQRqYNj53QnGeuzDoVepGydIQRp5Ij lh9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature :dkim-signature; bh=gKDwuIBNRlBJYpWscBRtFmxO0I8PDI8ZkbE33HCfeRU=; b=rSdJvfy+xEuMvGkWrlsm+l1k3+AgAjPN9Qzg3GbeEhb3A8iP6dnnk+xc0FB2eI7KmO G3lrVrByq+1klgnfvwyHsWVcOag/yaGFNVB1ZfQkAwJy6cpOe/2dUapQJja6KLBTRhuS y5Ju9voUvWoBgiY2MbD64cvoO/cQW7up+CmfTuFBGwy8sUXpSTndfJnej/w2SX/34mFI sNT4RBQ9keadx0WGJ6roPlzzRxe5XY9ndkHUAN7IsbwP95HN/QIZTkyM9Lq38QfZPDHu dfOWZDHc//Fi6mM7SdWNaHk5yeOwwj2lKa0OyWTkdAzEQlD3FUV7YKf9J0GJv5IYC+WV kJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1iXTdFpd; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=yx0hq+MX; 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 u20-20020a627914000000b004f6c6031dbasi6603117pfc.246.2022.03.06.17.44.34; Sun, 06 Mar 2022 17:44:49 -0800 (PST) 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=1iXTdFpd; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=yx0hq+MX; 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 S233025AbiCFXnQ (ORCPT + 99 others); Sun, 6 Mar 2022 18:43:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234453AbiCFXnP (ORCPT ); Sun, 6 Mar 2022 18:43:15 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A25C239836 for ; Sun, 6 Mar 2022 15:42:22 -0800 (PST) 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 4AF09210FC; Sun, 6 Mar 2022 23:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646610141; 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; bh=gKDwuIBNRlBJYpWscBRtFmxO0I8PDI8ZkbE33HCfeRU=; b=1iXTdFpdm4LoCp9GYGonBzRoZ2wLnoodJW/OB8k0OmcpHqdd3TmqsyqmOxypzrPKa7vO8v SabTJMNIcapj7pKA1AVM4rAV+GN3EpiiutqRYD+ZAyviUaVRAI1sSns0JBaMhGgaIwQcXh yZeIFLJv/W4SiWAEI3X6slYB8EAIWLM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646610141; 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; bh=gKDwuIBNRlBJYpWscBRtFmxO0I8PDI8ZkbE33HCfeRU=; b=yx0hq+MXYfrmW07V5aC1byMr8nRXvrm4Ui0nIHPGH4o7P9NJF3RHC9PA8RibxnizVsPZSC NL+yWV9sRe2I9rBQ== 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 26DB6134CD; Sun, 6 Mar 2022 23:42:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rPcKNNtGJWL5VwAAMHmgww (envelope-from ); Sun, 06 Mar 2022 23:42:19 +0000 Subject: [PATCH 00/11] Various NFS/sunrpc improvements for swap-over-NFS From: NeilBrown To: Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org Date: Mon, 07 Mar 2022 10:41:44 +1100 Message-ID: <164660993703.31054.17075972410545449555.stgit@noble.brown> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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,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-nfs@vger.kernel.org swap-over-NFS currently doesn't work. Even after these patches it still won't work. Some core MM changes are needed. However these patches make a number of improvements to NFS and SUNRPC so that swap-over-NFS can work once those mm changes land. There is one change since the last posting of these patches. The last patch was added to fix a potential hang when enabling swap. Trond/Anna - is their any chance these can go in on the next merge window? Thanks, NeilBrown --- NeilBrown (11): NFS: remove IS_SWAPFILE hack SUNRPC/call_alloc: async tasks mustn't block waiting for memory SUNRPC/auth: async tasks mustn't block waiting for memory SUNRPC/xprt: async tasks mustn't block waiting for memory SUNRPC: remove scheduling boost for "SWAPPER" tasks. NFS: discard NFS_RPC_SWAPFLAGS and RPC_TASK_ROOTCREDS SUNRPC: improve 'swap' handling: scheduling and PF_MEMALLOC NFSv4: keep state manager thread active if swap is enabled NFS: swap IO handling is slightly different for O_DIRECT IO NFS: swap-out must always use STABLE writes. SUNRPC: change locking for xs_swap_enable/disable fs/nfs/direct.c | 48 ++++++++++++++++++++++----------- fs/nfs/file.c | 19 +++++++++---- fs/nfs/nfs4_fs.h | 1 + fs/nfs/nfs4proc.c | 20 ++++++++++++++ fs/nfs/nfs4state.c | 39 ++++++++++++++++++++++----- fs/nfs/read.c | 4 --- fs/nfs/write.c | 2 ++ include/linux/nfs_fs.h | 13 +++------ include/linux/nfs_xdr.h | 2 ++ include/linux/sunrpc/auth.h | 1 + include/linux/sunrpc/sched.h | 1 - include/trace/events/sunrpc.h | 1 - net/sunrpc/auth.c | 8 ++++-- net/sunrpc/auth_gss/auth_gss.c | 6 ++++- net/sunrpc/auth_unix.c | 10 +++++-- net/sunrpc/clnt.c | 7 +++-- net/sunrpc/sched.c | 29 +++++++++++++------- net/sunrpc/xprt.c | 19 +++++-------- net/sunrpc/xprtrdma/transport.c | 10 ++++--- net/sunrpc/xprtsock.c | 34 ++++++++++++----------- 20 files changed, 185 insertions(+), 89 deletions(-) -- Signature