Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1141437pxb; Sun, 21 Feb 2021 13:18:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZC1+Q8btB3TpmgVUQRGMDi236e5gmMh+koYgZfxQCs+cgWrlnMhxNyAzIVQUqB/mu8GlG X-Received: by 2002:aa7:d9c4:: with SMTP id v4mr10233302eds.15.1613942284636; Sun, 21 Feb 2021 13:18:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613942284; cv=none; d=google.com; s=arc-20160816; b=g/clr78HlNEJMjEwwKyQc71K6QDH4u/vS6PQeBLm7eW6gcC8ZCRTIWY0R3+HNNCOId /vZnwSP0kk/yDAADJSWYQpkhkRYJPydkeWCuSJapANS5Td/B10g4kIGPPNF7om1Fse2b esokApqxuGFtop5DHrSU+iP0s1sfomEa8J/IN2XTwapvVeEtn6j/uDpCpQuIGaQK4tCN c5AAQ2gOBIa42AC6TYbsaG2OP1QyU5nLHEeYTJNsJbonEI/ZI8izSakPV6uXo6vIQmZh IcR3n5hdOteevRrcFGQN9URnkBQfLNTIqb5RRKQf3YQ9yVuAVWTL5ZZ4nayxni25kmqV DNng== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VAZ1TmIANq/u0c9s/QFyK2fmVjECGm3flzOEfiwNkmY=; b=X/HRkL9VYVugWPpVUBBIYC1Rpxn4FzpjTB+u4T9zpG6thHlj/gH6DWHF3m8ifHYP+j GHzvYd2fB9VkcQ2Y9zjr2SGAk/9hIxFCWT2VKwoGSV3FKkWxtDMpFyDeW2kzqNbJxcBK cC0lqTd+evf54IwAYYgzQKLr1RLfBG5V4k/hBSF6Rs7Q8SFnoN+eDhJXSVhWsgLFSYOh rsew+dEnm5GwLtMAGhCb301SyY8ezaSxaB9+WcecILgmdW8i9xXNmpsffINufCilJGql 4IkoGHjpI5/zcH9CP4N0aVHIx5pblfQ7+OwPCVr6O8Ak/EGUILrq+mJfGnq+LTwY55BZ lSLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rothenpieler.org header.s=mail header.b=pLBFCsSN; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rothenpieler.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si10707320edc.491.2021.02.21.13.17.29; Sun, 21 Feb 2021 13:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@rothenpieler.org header.s=mail header.b=pLBFCsSN; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rothenpieler.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbhBUVOp (ORCPT + 99 others); Sun, 21 Feb 2021 16:14:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbhBUVOo (ORCPT ); Sun, 21 Feb 2021 16:14:44 -0500 Received: from btbn.de (btbn.de [IPv6:2a01:4f8:162:63a9::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B88DC061574 for ; Sun, 21 Feb 2021 13:14:04 -0800 (PST) Received: from Kryux.localdomain (muedsl-82-207-216-212.citykom.de [82.207.216.212]) by btbn.de (Postfix) with ESMTPSA id 2AF3623785F; Sun, 21 Feb 2021 22:14:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1613942040; bh=VAZ1TmIANq/u0c9s/QFyK2fmVjECGm3flzOEfiwNkmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pLBFCsSNR8mmanDUiB2RmXQ0o3gzQZHsIomcfFjXmJ031g0imkV5DQTqLFQ67AUa/ aNAGWvvyerOo/iOP6iVBokVna6cR+x2aJgZZ0BrZEXfDVlaJ0tYM9PmW+uFL9Mq/hT hTXPZrKC+YOmhUAfw8/6N+2up5D4pkd8RW4r8bqsqn4KDG4rQYTDumKgryKMbIbIE7 vXY0UryoKqKnG4IMOePCDc38FB1uJp/nEQFwiMDEeu/qTQzWX+QlWKmDMqKwLo+xb2 UEQ7qFGL0L1V7p74Ik/N3BOqL5xGWKuCB6fzfA8KpSGOf9aKXjo9jpsZA4fPjansyN gwpzgNBGlbqFg== From: Timo Rothenpieler To: Linux NFS Mailing List Cc: Chuck Lever , Olga Kornievskaia , Timo Rothenpieler Subject: [PATCH] nfsd: set RPC_CLNT_CREATE_NO_IDLE_TIMEOUT on callback client Date: Sun, 21 Feb 2021 22:13:47 +0100 Message-Id: <20210221211347.3429-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This tackles an issue where the callback client times out from inactivity, causing operations like server side copy to never return on the client side. I was observing that issue frequently on my RDMA connected clients, it does not seem to manifest on tcp connected clients. However, it does not fix the actual issue of the callback channel not getting re-established and the client being stuck in the call forever. It just makes it a lot less likely to occur, as long as no other circumstances cause the callback channel to be disconnected. Signed-off-by: Timo Rothenpieler --- fs/nfsd/nfs4callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 052be5bf9ef5..75dacb7878b8 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -897,7 +897,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c .timeout = &timeparms, .program = &cb_program, .version = 1, - .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), + .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET | RPC_CLNT_CREATE_NO_IDLE_TIMEOUT), .cred = current_cred(), }; struct rpc_clnt *client; -- 2.25.1