From patchwork Thu Sep 26 19:13:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schumaker, Anna" X-Patchwork-Id: 11163329 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E697714DB for ; Thu, 26 Sep 2019 19:13:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A595B2086A for ; Thu, 26 Sep 2019 19:13:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=netapp.onmicrosoft.com header.i=@netapp.onmicrosoft.com header.b="Jvz7EnfA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728094AbfIZTNf (ORCPT ); Thu, 26 Sep 2019 15:13:35 -0400 Received: from mail-eopbgr760077.outbound.protection.outlook.com ([40.107.76.77]:8755 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727707AbfIZTNf (ORCPT ); Thu, 26 Sep 2019 15:13:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fH93NVy43rUS8McgHUFpVolHQ2YozPUxXdruiI8NRfeLmEVghskgA/iZ7QpZWdmuJ8WxsUDSrXgsZw3NsR9RwMQ9JIA4RoPxEF01oAxisWOFQPspZP8nH8BcdZ775XB4G+In09KjkL7cfjUxJKiJ7xZXl6Xa158G+PN5B/Gg9MVg4qxYVe7djm9oZQM9eEDH6P2LMgJYB5ztklUhXipOS1LZqJUgnIJRKU+e5KOK/P9xkW1oPjFR3u0vklU3Uo5fiq5nD5rp9twYldpnq06RsGNF5BRixoATgpR32zm8m32XfiZV+zVH7vXnANK95A8tJqzO9+vFcmpOMGaoa2cJ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6hh2Sm4XaahRh9kB0ApVbpzhT2Ziuv4c5vCxr5w6js0=; b=oYRH+2K2Q9OMrq9jPsgQ2ComG+vnoc7aAHCzyyd9UUSUGiWXzuabmOwOSlf5+DGtZcGNLqlhmy7lRBQc15tnFsnUxHKMxtkbqa7mt4ngtmc56IGEORQ77TEoNoKebBJeIVRL2Gs4sH0vTufdEti/RsCpVO7qo6cS+m8Haa6+AqNnKdIX2wwSOEiV9sa1OG7FCfZM5ARrz9iwajw/6jjfalqIwv0VUlIMiImI+wJOqHJrJbIfmBwcsgWAQhLBtVTj86lHtSkGJ7NxPen5s1jdTyGR4TGoIO4bdBZ5ODomgUkWudhMs2I9mS1hXJlwENmsu6EjcYY6gqGQV8zeiDuxDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netapp.com; dmarc=pass action=none header.from=netapp.com; dkim=pass header.d=netapp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector2-netapp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6hh2Sm4XaahRh9kB0ApVbpzhT2Ziuv4c5vCxr5w6js0=; b=Jvz7EnfARN5nsEJHVRVKmGrUImkNH6X2oyqQ32kLOdYPLHdh/0TBZNVuWWQ4S2hIj0cbl43PixCyBbOBifqUZV4zb63pcvp1GzsAiT399WtAAx4/0u7nSMppGC8qtO1aQRsmqIsPoewaL/4eUASRAxcTu82sQ7QOq7QNk3Gjudk= Received: from DM6PR06MB6059.namprd06.prod.outlook.com (20.178.27.212) by DM6PR06MB5802.namprd06.prod.outlook.com (20.179.161.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.23; Thu, 26 Sep 2019 19:13:31 +0000 Received: from DM6PR06MB6059.namprd06.prod.outlook.com ([fe80::253b:ba8d:133c:6b88]) by DM6PR06MB6059.namprd06.prod.outlook.com ([fe80::253b:ba8d:133c:6b88%5]) with mapi id 15.20.2284.023; Thu, 26 Sep 2019 19:13:31 +0000 From: "Schumaker, Anna" To: "torvalds@linux-foundation.org" CC: "linux-nfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [GIT PULL] Please pull NFS Client updates for Linux 5.4 Thread-Topic: [GIT PULL] Please pull NFS Client updates for Linux 5.4 Thread-Index: AQHVdJ5759zQbDxVq0qzZCixHBhXNw== Date: Thu, 26 Sep 2019 19:13:30 +0000 Message-ID: <8448ef6bd5fa881b3114ca30d2e71730ef357e4f.camel@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.34.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anna.Schumaker@netapp.com; x-originating-ip: [23.28.75.121] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30c597a4-966e-4549-e635-08d742b59e82 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM6PR06MB5802; x-ms-traffictypediagnostic: DM6PR06MB5802: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:311; x-forefront-prvs: 0172F0EF77 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(346002)(376002)(366004)(39860400002)(199004)(189003)(6436002)(1730700003)(81166006)(58126008)(99286004)(26005)(5660300002)(186003)(4326008)(7736002)(25786009)(305945005)(6506007)(102836004)(478600001)(14444005)(86362001)(256004)(54906003)(6916009)(71190400001)(71200400001)(91956017)(76116006)(66556008)(66476007)(2616005)(66946007)(64756008)(15650500001)(6512007)(486006)(66066001)(2351001)(14454004)(6486002)(36756003)(8936002)(316002)(5640700003)(6116002)(476003)(66446008)(81156014)(2906002)(8676002)(118296001)(3846002)(2501003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR06MB5802;H:DM6PR06MB6059.namprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: netapp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: QNL5cYdqo4njx9qLgPFq/gdOMwh5twvlNbQPDNSqLaQVPVhiZSAhbSr05hF+ZN6tYPznGZmlJg2JEvlpYqJK/h/2Aald7NwCd9GJ4S+kdX3qtqdQ1IOO+58A8ef8jqurkbSbYkBpxwh6to5VMdk8cvUtTkKEci5GkSfly3TGmG0h1hXe591mlVMfhoTHiMZgq/hPb7wSbwSbaGza2ML17aDhVxoPSrRQ9qJ9Ebcddzf0gOBf+iCE7a1R/7PRukl51UQY5RH0VdYTLz+kYFCATvB6Ta5reYgYQ9Cd9XC+Ktu5Up8kuIOQGzUWwf1zZsfGEePfCgHBt8PrLRx2Jdo5vT+ZpWP6UMkp6Y1rVpBPJpPzDotJFem2VXikXX3MyMKXaTaZX4vMrlZeKoF1rqk1o7Lp8vE6axzgC+SOdvLKCmk= x-ms-exchange-transport-forked: True Content-ID: <66234C1B24BB7547A9C5E58F2EB23C46@namprd06.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: netapp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30c597a4-966e-4549-e635-08d742b59e82 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2019 19:13:31.0158 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nwM0ku1jYh49Nwu114AYTvPB6IpYIYgk1JRvzG9BmLJmhpoynLGXBPFvPFqauD4csY7navLXPWcm5OwKe3yXdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR06MB5802 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Linus, The following changes since commit d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1: Linux 5.3-rc5 (2019-08-18 14:31:08 -0700) are available in the Git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-5.4-1 for you to fetch changes up to a8fd0feeca35cb8f9ddd950191f4aeb777f52f89: pNFS/filelayout: enable LAYOUTGET on OPEN (2019-09-24 16:28:38 -0400) ---------------------------------------------------------------- Stable bugfixes: - Dequeue the request from the receive queue while we're re-encoding # v4.20+ - Fix buffer handling of GSS MIC without slack # 5.1 Features: - Increase xprtrdma maximum transport header and slot table sizes - Add support for nfs4_call_sync() calls using a custom rpc_task_struct - Optimize the default readahead size - Enable pNFS filelayout LAYOUTGET on OPEN Other bugfixes and cleanups: - Fix possible null-pointer dereferences and memory leaks - Various NFS over RDMA cleanups - Various NFS over RDMA comment updates - Don't receive TCP data into a reset request buffer - Don't try to parse incomplete RPC messages - Fix congestion window race with disconnect - Clean up pNFS return-on-close error handling - Fixes for NFS4ERR_OLD_STATEID handling Thanks, Anna ---------------------------------------------------------------- Anna Schumaker (6): NFS: Add an nfs4_call_sync_custom() function NFS: Have nfs4_proc_setclientid() call nfs4_call_sync_custom() NFS: Have _nfs4_proc_secinfo() call nfs4_call_sync_custom() NFS: Have nfs41_proc_reclaim_complete() call nfs4_call_sync_custom() NFS: Have nfs41_proc_secinfo_no_name() call nfs4_call_sync_custom() NFS: Have nfs4_proc_get_lease_time() call nfs4_call_sync_custom() Benjamin Coddington (5): SUNRPC: Fix buffer handling of GSS MIC without slack SUNRPC: Rename xdr_buf_read_netobj to xdr_buf_read_mic NFS: Refactor nfs_instantiate() for dentry referencing callers NFSv3: use nfs_add_or_obtain() to create and reference inodes NFS: remove unused check for negative dentry Chuck Lever (25): SUNRPC: Remove rpc_wake_up_queued_task_on_wq() SUNRPC: Inline xdr_commit_encode xprtrdma: Refresh the documenting comment in frwr_ops.c xprtrdma: Update obsolete comment xprtrdma: Fix calculation of ri_max_segs again xprtrdma: Boost maximum transport header size xprtrdma: Boost client's max slot table size to match Linux server xprtrdma: Rename CQE field in Receive trace points xprtrdma: Rename rpcrdma_buffer::rb_all xprtrdma: Toggle XPRT_CONGESTED in xprtrdma's slot methods xprtrdma: Simplify rpcrdma_mr_pop xprtrdma: Combine rpcrdma_mr_put and rpcrdma_mr_unmap_and_put xprtrdma: Move rpcrdma_mr_get out of frwr_map xprtrdma: Ensure creating an MR does not trigger FS writeback xprtrdma: Cache free MRs in each rpcrdma_req xprtrdma: Remove rpcrdma_buffer::rb_mrlock xprtrdma: Use an llist to manage free rpcrdma_reps xprtrdma: Clean up xprt_rdma_set_connect_timeout() xprtrdma: Fix bc_max_slots return value xprtrdma: Inline XDR chunk encoder functions xprtrdma: Optimize rpcrdma_post_recvs() xprtrdma: Recycle MRs after disconnect xprtrdma: Clear xprt->reestablish_timeout on close xprtrdma: Send Queue size grows after a reconnect SUNRPC: Fix congestion window race with disconnect Jia-Ju Bai (1): fs: nfs: Fix possible null-pointer dereferences in encode_attrs() Olga Kornievskaia (1): pNFS/filelayout: enable LAYOUTGET on OPEN Trond Myklebust (14): SUNRPC: Dequeue the request from the receive queue while we're re-encoding SUNRPC: Don't receive TCP data into a request buffer that has been reset SUNRPC: RPC level errors should always set task->tk_rpc_status SUNRPC: Don't try to parse incomplete RPC messages pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors NFSv4: Clean up pNFS return-on-close error handling NFSv4: Handle NFS4ERR_DELAY correctly in return-on-close NFSv4: Handle RPC level errors in LAYOUTRETURN NFSv4: Add a helper to increment stateid seqids pNFS: Handle NFS4ERR_OLD_STATEID on layoutreturn by bumping the state seqid NFSv4: Fix OPEN_DOWNGRADE error handling NFSv4: Handle NFS4ERR_OLD_STATEID in CLOSE/OPEN_DOWNGRADE NFSv4: Handle NFS4ERR_OLD_STATEID in LOCKU NFS: Optimise the default readahead size Wenwen Wang (1): NFSv4: Fix a memory leak bug fs/nfs/dir.c | 41 +++-- fs/nfs/filelayout/filelayout.c | 1 + fs/nfs/internal.h | 8 - fs/nfs/nfs3proc.c | 45 ++++-- fs/nfs/nfs4_fs.h | 11 +- fs/nfs/nfs4proc.c | 315 ++++++++++++++++++++++++-------------- fs/nfs/nfs4state.c | 22 +-- fs/nfs/nfs4xdr.c | 2 +- fs/nfs/pnfs.c | 71 ++++++++- fs/nfs/pnfs.h | 17 +- fs/nfs/super.c | 9 +- include/linux/nfs_fs.h | 3 + include/linux/sunrpc/sched.h | 3 - include/linux/sunrpc/xdr.h | 2 +- include/linux/sunrpc/xprt.h | 1 + include/linux/sunrpc/xprtrdma.h | 4 +- include/trace/events/rpcrdma.h | 88 +++++++++-- net/sunrpc/auth_gss/auth_gss.c | 2 +- net/sunrpc/clnt.c | 26 +++- net/sunrpc/sched.c | 32 +--- net/sunrpc/xdr.c | 65 +++++--- net/sunrpc/xprt.c | 61 +++++--- net/sunrpc/xprtrdma/backchannel.c | 4 +- net/sunrpc/xprtrdma/frwr_ops.c | 166 +++++++++----------- net/sunrpc/xprtrdma/rpc_rdma.c | 71 ++++++--- net/sunrpc/xprtrdma/transport.c | 15 +- net/sunrpc/xprtrdma/verbs.c | 263 ++++++++++++++----------------- net/sunrpc/xprtrdma/xprt_rdma.h | 59 ++++--- net/sunrpc/xprtsock.c | 8 +- 29 files changed, 835 insertions(+), 580 deletions(-)