Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1276416pxb; Thu, 24 Mar 2022 16:41:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfu3kjFSXKjawv5ojh/1Pv+HNyn1ZK7VfB7dzOps+w9gEroZmbr7g2xPEq7EVmvN5S4fYy X-Received: by 2002:a17:902:ea08:b0:154:45ba:9543 with SMTP id s8-20020a170902ea0800b0015445ba9543mr8383384plg.80.1648165302333; Thu, 24 Mar 2022 16:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648165302; cv=none; d=google.com; s=arc-20160816; b=SwMehrLMMwtjolI+mIeHYhjWrwZQydyj9Te8Lg2iStCXrFpO1MLru66LmGO0RWDGaH PC3YNv5hqdNathQ5YoaDpnPnwHV2mqRgTF7DYELeA/tuIAgQoMBL7gHSPAUBgqeu5yBg uKYQzUyGUij3pPpxFoHldQfgzyD8yHq0MFWLt2XMCRqyoTeNvpEnWecDVCNdjaznFMxK BKmkUoR1ST0bdf/i8U4aYb/MwyljhX8LjIbbQ79PM1bFCf6dlEK+ou0ilI6zK80G2UVy 8Ua7VHHTmv4koUY6PMks1ATyINvagXSO7euEOZxLKj57pfGuqNIKYvoxW8fVzWI6oZv5 hi/A== 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=70uNct/+IzRMBwgKBAf/rUmTtjboZJuYaDbKXqcNmRM=; b=PQDu/IFe0gXCF9KQjM883uVpBT7GZDQzg6gem7hGcZACUGbi24BtAiyvPq846WwGnI ky4DAche4hdufEQ5UspfVw1cJJp9Ur9LhpCNHuDUGnIj4Fg4mhzlF9Fvlhqpoo0w/UlL NzH+ACDrNwW8don/uOxuZQSNghYpdL5U9Fk2OeuHMz7/h4BJ3kTxfhFHeh9+/O6qnKnA eHSMgqsGwMoabc/UvLkV/p3aLz54yQU+mkxy4Vz8FxpeSxs+v9qS21OyUD+qPURrRv31 iD4jdaa0vaozs+sqnCTLri3K4jfq+xM1RzDJ8ozUlDzL5DqFw+fNcQ8ubw5RjFrRiKVr DeGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=uQLrEBju; dkim=neutral (no key) header.i=@suse.de; 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 c17-20020a170902d49100b001540e087687si768067plg.198.2022.03.24.16.41.16; Thu, 24 Mar 2022 16:41:42 -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=uQLrEBju; dkim=neutral (no key) header.i=@suse.de; 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 S232414AbiCWW6w (ORCPT + 99 others); Wed, 23 Mar 2022 18:58:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbiCWW6w (ORCPT ); Wed, 23 Mar 2022 18:58:52 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B07F38F98C for ; Wed, 23 Mar 2022 15:57:21 -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-out2.suse.de (Postfix) with ESMTPS id 6B9471F387; Wed, 23 Mar 2022 22:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1648076240; 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=70uNct/+IzRMBwgKBAf/rUmTtjboZJuYaDbKXqcNmRM=; b=uQLrEBjuZTmnVLyVJRrO7HYP5phJugVxSOdUSK8UFJvgoAfTNSBMbn6fzH4NYIDwuiBE3J ebBPE1CedrGBQG/S+CdJMfMf6XPISznSe37zBsqMXgdujgVLV7YUdnBVjWjyAbGuZ0BmSU 6tLQM/5clo7W0xW8lm8j6Y0kiwF2Vzc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1648076240; 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=70uNct/+IzRMBwgKBAf/rUmTtjboZJuYaDbKXqcNmRM=; b=K2az4mzXfVdiLdVCGX62y8dB4hsnwzP6HxSNWlylQQrC0td9WE+QqhJoNG1GmzNiYRLsX4 gjpXuurpUtqnFXCg== 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 9BC5F12FC5; Wed, 23 Mar 2022 22:57:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5SyaFs+lO2ItFQAAMHmgww (envelope-from ); Wed, 23 Mar 2022 22:57:19 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: trondmy@kernel.org Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v2 0/9] Crossing our fingers is not a strategy In-reply-to: <20220322011618.1052288-1-trondmy@kernel.org> References: <20220322011618.1052288-1-trondmy@kernel.org> Date: Thu, 24 Mar 2022 09:57:16 +1100 Message-id: <164807623644.6096.16226567748741917177@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,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 On Tue, 22 Mar 2022, trondmy@kernel.org wrote: > From: Trond Myklebust > > We'd like to avoid GFP_NOWAIT whenever possible, because it has no fall- > back reclaim strategy for dealing with a failure of the initial > allocation. I'm not sure I entirely agree with that. GFP_NOWAIT will ensure kswapd runs on failure, so waiting briefly and retrying (which sunrpc does on -ENOMEM (at least ni call_refreshresult) is a valid fallback. However, I do like the new rpc_task_gfp_mask() and that fact that you have used it quite widely. So: looks good to me. I haven't carefully reviewed each patch enough to say Reviewed-by, but I did see an easy problems. Thanks, NeilBrown