From patchwork Fri Mar 7 15:02:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 3792141 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 19C9C9F35F for ; Fri, 7 Mar 2014 15:02:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CD97202B8 for ; Fri, 7 Mar 2014 15:02:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3EA3F20274 for ; Fri, 7 Mar 2014 15:02:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753013AbaCGPCu (ORCPT ); Fri, 7 Mar 2014 10:02:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11373 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751744AbaCGPCt (ORCPT ); Fri, 7 Mar 2014 10:02:49 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s27F2mT9008568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Mar 2014 10:02:48 -0500 Received: from smallhat.boston.devel.redhat.com (vpn-54-164.rdu2.redhat.com [10.10.54.164]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s27F2k1v029750; Fri, 7 Mar 2014 10:02:47 -0500 From: Steve Dickson To: Trond Myklebust Cc: Linux NFS Mailing list Subject: [PATCH] NFSv4: Don't retry server trunking discovery on timeouts Date: Fri, 7 Mar 2014 10:02:43 -0500 Message-Id: <1394204563-1166-2-git-send-email-steved@redhat.com> In-Reply-To: <1394204563-1166-1-git-send-email-steved@redhat.com> References: <1394204563-1166-1-git-send-email-steved@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To allow background mounts to process into background, server trunking discovery needs to return the -ETIMEDOUT error to the mount command instead of endless retrying in the kernel. Signed-off-by: Steve Dickson --- fs/nfs/nfs4state.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index e1a4721..be4b33f 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -2085,6 +2085,7 @@ again: break; case -NFS4ERR_DELAY: case -ETIMEDOUT: + break; case -EAGAIN: ssleep(1); case -NFS4ERR_STALE_CLIENTID: