Message ID | 20170407181528.2832-24-Anna.Schumaker@Netapp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-nfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DCDC060364 for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:16:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5CD42862A for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:16:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA8C128636; Fri, 7 Apr 2017 18:16:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CDF028635 for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933584AbdDGSQL (ORCPT <rfc822;patchwork-linux-nfs@patchwork.kernel.org>); Fri, 7 Apr 2017 14:16:11 -0400 Received: from mx143.netapp.com ([216.240.21.24]:55096 "EHLO mx143.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933093AbdDGSQB (ORCPT <rfc822;linux-nfs@vger.kernel.org>); Fri, 7 Apr 2017 14:16:01 -0400 X-IronPort-AV: E=Sophos;i="5.37,167,1488873600"; d="scan'208";a="186183206" Received: from hioexcmbx01-prd.hq.netapp.com ([10.122.105.34]) by mx143-out.netapp.com with ESMTP; 07 Apr 2017 11:03:42 -0700 Received: from VMWEXCCAS01-PRD.hq.netapp.com (10.122.105.11) by hioexcmbx01-prd.hq.netapp.com (10.122.105.34) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 7 Apr 2017 11:15:59 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.120.60.153) by VMWEXCCAS01-PRD.hq.netapp.com (10.122.105.11) with Microsoft SMTP Server (TLS) id 15.0.1210.3 via Frontend Transport; Fri, 7 Apr 2017 11:15:59 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/XEmTo3cxBtwqFpUwgb3Yb/VyUekTH1ZqTYdFD4/HiI=; b=XbUo+C8NYf8xXXaxPhmEfM9PcfJtm1YfeTw6PIMlFWFwlpXJ1WnYA7ZVFbUUPnwl7YmSgC3OLX6jMYexZACvpGObGYG+I3ek+8KxCvAlcFBor5ue36LNCJkqU35mIo+MyaSgvyEprR8/A7cATAQzYVGhlkKa+oj+IlDG8usCcZQ= Authentication-Results: primarydata.com; dkim=none (message not signed) header.d=none; primarydata.com; dmarc=none action=none header.from=Netapp.com; Received: from gouda.nowheycreamery.com.nowheycreamery.com (68.40.188.1) by CY4PR06MB2472.namprd06.prod.outlook.com (10.169.186.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Fri, 7 Apr 2017 18:15:56 +0000 From: <Anna.Schumaker@Netapp.com> To: <Trond.Myklebust@primarydata.com>, <linux-nfs@vger.kernel.org> Subject: [PATCH 23/34] NFS: Clean up nfs4_init_server() Date: Fri, 7 Apr 2017 14:15:17 -0400 Message-ID: <20170407181528.2832-24-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170407181528.2832-1-Anna.Schumaker@Netapp.com> References: <20170407181528.2832-1-Anna.Schumaker@Netapp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [68.40.188.1] X-ClientProxiedBy: DM5PR20CA0021.namprd20.prod.outlook.com (10.173.136.159) To CY4PR06MB2472.namprd06.prod.outlook.com (10.169.186.140) X-MS-Office365-Filtering-Correlation-Id: 98c7ed46-0a32-4dd2-9663-08d47de22309 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR06MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 3:9yvpE5SXg7UnthgFooWtfs4IVzFrO4hOWO3dsLxf5RiOLCdgeO0AItHq/XaFDfdaBAz/z1Q6+6LJMagYJstxSdYfyBhYclTG2thYw7ICx3CCEH/u7myElXe94At02TeHQlCFEpMGwbiOTRzs2soQlnt/6qgl9hXSYM1a3xxam7TEsprzjBP/+FTyEy6GoU+AoOqDrUJIEbBWuK6ZGfQQX+9qibUDemEkv/seOEDVD1BxDopSrQwUFzVP66NciUo5eMhAVHOqCEAEGXPzLrNzmneCZeUmSd1tThOYj9WXa9wd0IjHVQjiKNemsoh+10I2iz5jWmLkZ3eAx2aSunQhDw==; 25:MG4t+MJ8bHWC/o+nsCNLb4Ezba4X3Zw2GenkpLvBSBan12ANTO8TI3PdjN85lCIaKXkkCA3docxIARzujz1bBQLkONP/CxoHxbTHsS4iixWVfK5eVsfC3t4aZ71JumowXVuvEBSU6UoB5alEfG74Y2TJu9fOilAgyQb1g2AKzl3RTh29kv3u/epKpULQ59IJWdpIGGxHr715Bvdla7S0Hc++eOHCJPDxJP2Q4aon3aRcYPSThhVINveawN9aazssFbLrIL7FFbJoFJtXzmZJoRwbHYsq4nQtpwZlfChNsqsm6g8GXHr/WGz155HcQ+xGXd4YUIAAAfHNDPtehL0MoNDtQIkPZUv4w4jJ/u/loN6QPiIAc5A2rXqCxBDMZX90s3F/FDs1bEhnLkSTSP411qMVU/3FVo8Ta3g5lPiQng8rXJNSdkiPlfBIKzNodiD/mZZl9vusuEoJaKnFSWByvw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 31:GJ/cMKLURB/IFcx+7E1ZFSZJHcEu/cS7tFoxBt0Z9Zf4reYiXG8vrS7Kcwb3zOAjOPdupE7iYo8l6pcWbYdmeLr/UpvddKzrxlJI1tKIBWKTKJfKTHaeOjtMGpP5I7ong3y5ZU4LUJVCvUquCD6ezvyfvYw1bkUpb/astRUx1Zn84uo8dY8rc2K2RYejhgtkGpGC8qjsX+CjCLYnytUKybsLs/fKd0CqVBk3oLR7YXLNbz38Y8dpiiQY9x8WQ4yi; 20:bFMzpoVw4p0KcKqBO4Duoz0pugFsozi6hHKhbt6PHTao5lwmpowAgNvXNqLzugiRZByabTDYAIDhSnxVt+XKawC1RY+t3s2v2uDP7DjbiR85BtT6IHkHgNqYU8HeasNhXoQ5us1B9Uad2v3IvzB92vfYTfGndCwYjBvlwc9rkJnvUgTVgbHajfSOl8jTML0xv9VtoWUbWNokwsvbwn29YDyh4qaVz+1SzmDH61SWO+Ko0M9DLDPiYKCpNLNEPvMdkMC/sj40yIK+9ZXp9eeaSlzzqzJ/3YEI2f+WeTjTiNRaOd/bXkJaidliRRWkR2fHYbGxbnNNEYQeuhFhrRFzJUFQvJ3VHSmIdp1PnBWWv69N+lRzE0vdUmkVN6XtpLTpwsFtLzEw72m/cdwqYmxFLnljqH4Fx/+sVtow4YowUCfrKrm+QQhofCtjh1N6mRcqV6KVB3h9xnf8Pj09b4vqyDmd5QZADjlMPIBq/BFeMo2Fo6ypFDxovA4RZ2gDw6mC X-Microsoft-Antispam-PRVS: <CY4PR06MB247280B6324C40A1BBE56582F80C0@CY4PR06MB2472.namprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:CY4PR06MB2472; BCL:0; PCL:0; RULEID:; SRVR:CY4PR06MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 4:obeUfanLE4AhYv7CQz3DvANtXErJFvdk5C0jAmdSqLUZmwA5GbYm2+rr6OjuUoUILF0UthHL2nIfxeMczlM0vQJKDvyaiP/Y8GOmPlk4P0oNqdJqkLtq6gR6fUYgU7csz/rXCJKNS19BUApVHcI+mYOGkIaTqikHGEJeit8ssKni7N81kZvtbCwW93h82Ro0XfgO3RLLCOtNbEqUsUOHD8/atNkZEvKqYrvf3PNA7g3UzLdXJqbGnCjFKMa2vEYrpwNIvJ5ghO1M1BXeIrEGwGx5BrNuw+t+3b6l95QAc0W9Xv+DDr+ulZf0JouYeA7SOdPW9oVhr8wRJ/N/kYSvImRkLsbqxWl/V22cSQREofzWIITOxAF/DLdtQ5ybJAAGUfCAd1itgjtrYA3JsKDkgtaBktZaW6QRB7wvO5G6F9zzNiRdKT4DbQNihuvSpsPEZVXJBtrwP3n+nGBwohyrokr2QtsSGpC6pTM5r/tSL+c+lfKMLQsF9lvKzvbW6lfnawUbQYZ7EGLyw8dHfHQhAwc92WqWxaZ9ai6QoPmwzAQH3MjfZsbO56GJI7Uvjhv9ds4nvb/mUG+HWcc3zUFj6N0NE5NDOj6L4duGifBFbzdevVx2NH1rgUNYOZcJFqG9Yf6DqCO135NlobH5eUozAMl2WoQ5zVUYRe3m1Tcs+6ZbTpU0tDBFa20x8SPGkNZsM3ILce5yNH/vFidjWLtDXxOv1S+gfgWBm3n12ouxcLI= X-Forefront-PRVS: 0270ED2845 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39850400002)(39450400003)(305945005)(189998001)(2950100002)(5003940100001)(6666003)(7736002)(86152003)(6512007)(2876002)(6506006)(6486002)(36756003)(5660300001)(53936002)(25786009)(38730400002)(76176999)(50466002)(81166006)(8676002)(50226002)(1076002)(6116002)(66066001)(42186005)(2906002)(50986999)(47776003)(86362001)(3846002)(15760500002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR06MB2472; H:gouda.nowheycreamery.com.nowheycreamery.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR06MB2472; 23:cei1wHditRNQLQ29IXML5dhQp1YLmkqWIZZV4eulg?= =?us-ascii?Q?Tq71COIUAVbSQSLwdHDbirT/vWYnUvyanAln20y7/6EhqRR4Qg1l7cUUiiBP?= =?us-ascii?Q?fxH5GewHJwuEr42uoYdF44jj+NHG1yaf9NhDo8Kh4123qJRD3LWtGcNamnCb?= =?us-ascii?Q?mzr5JtDJzuOGdmxv/GkqJ+epGP9rEHGd1gEHOWlrVJl9bkpsAo5eofs4Q63f?= =?us-ascii?Q?gTciahC6TDbJDYCK1E4JzXAddooEZ2ZJ1lZtZCNgYYrZ9BmuFgsGwzVif47m?= =?us-ascii?Q?0Kjla1q6KuJTRCkKoH0RT2Fs3gCixnbw3JrZDoDO6D0Erg7dnh8/hZ+G2M4J?= =?us-ascii?Q?ePkcFbgfKYv8/pdMi2uqVFLgUvbLK2ushet6t13M2QaS4+KFmBkjOtfVvJRh?= =?us-ascii?Q?wRk/gVcw14AQ6uixGJ3MMJnR7Vg/0lBgazz7xscB6HrHDdhNVKMFUaRTJeuh?= =?us-ascii?Q?gcNYEYpUPdC5kJKhNCckZedkpOJlQCHPRn8wHUwjTTIMfe3kL/IZVhb2F1Qy?= =?us-ascii?Q?rA0iNbeDH7T9xZ1hrmf574n5UcOKZTBbwnM7oITETWBw7qgPul+mV7AdQvgs?= =?us-ascii?Q?HcIgEbuIlblw0WPte6dthKFW+bZfyL09OMiuT19ynw1DagD4udUXm5nemdEZ?= =?us-ascii?Q?qohjNTt8FwVoB3y77Ge4evD7E9ETYIPpt0IEpicBQ3Cu/2YBH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:mmLW75spFW/zdBy2+yRDTue2ZgbXGu8gMS8TD5N4RpP5ayAEPL4OOeL27gGXSiZceLVwL7ArOhJaYaGqJDFQQ2DR4CDfDwqokAqWz3gO9rM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 7:yDHQPr6T6iTZezv082mpOJdHL1GzH7RR5iXjbdBuLLGpKjHx9XMTFKhskaexPHH3n61xCqVysJ5YppU+/1FvgYyfPTv6V1BimxhMgonjHIqVt5qVxY68onYjjg2wnV+UNmFr8co/c3daNhDwT95keq6MmfHQ7B2MfXwczSyz/UnhFBHxbJvVeGk3p479C6E+E50PlAYL+aM6rU8VVKUM54VO0z9IKtLYEuseUHtY2fgCRQYJ1sid52WcfgWo2lK2zi5vYRKDnsv1n8bxJxw2IaRyOCLCfcPkABdfLRNkmw+fjNHtRArrf518hrpcDhAMbBaKMIF6cKjqNE5M8JmMlQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 18:15:56.7081 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR06MB2472 X-OriginatorOrg: netapp.com Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-nfs.vger.kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index a380255e85ed..2e7fc76cbd4b 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -1025,8 +1025,6 @@ static int nfs4_init_server(struct nfs_server *server, struct rpc_timeout timeparms; int error; - dprintk("--> nfs4_init_server()\n"); - nfs_init_timeout_values(&timeparms, data->nfs_server.protocol, data->timeo, data->retrans); @@ -1054,7 +1052,7 @@ static int nfs4_init_server(struct nfs_server *server, data->minorversion, data->net); if (error < 0) - goto error; + return error; if (data->rsize) server->rsize = nfs_block_size(data->rsize, NULL); @@ -1065,16 +1063,10 @@ static int nfs4_init_server(struct nfs_server *server, server->acregmax = data->acregmax * HZ; server->acdirmin = data->acdirmin * HZ; server->acdirmax = data->acdirmax * HZ; + server->port = data->nfs_server.port; - server->port = data->nfs_server.port; - - error = nfs_init_server_rpcclient(server, &timeparms, - data->selected_flavor); - -error: - /* Done */ - dprintk("<-- nfs4_init_server() = %d\n", error); - return error; + return nfs_init_server_rpcclient(server, &timeparms, + data->selected_flavor); } /*