NFSv4: Initialise connection to the server in nfs4_alloc_client()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 9 Jun 2021 14:04:46 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:01:02 +0000 (09:01 +0100)
commitd5e6dff8c92943a2719fa5415cc3d333e57d5d90
treee8b4a38f315d3d426bec042ea19a74150a1164a7
parent93e83b226a16bcc800013c6e02c98eef7ba9868c
NFSv4: Initialise connection to the server in nfs4_alloc_client()

commit dd99e9f98fbf423ff6d365b37a98e8879170f17c upstream.

Set up the connection to the NFSv4 server in nfs4_alloc_client(), before
we've added the struct nfs_client to the net-namespace's nfs_client_list
so that a downed server won't cause other mounts to hang in the trunking
detection code.

Reported-by: Michael Wakabayashi <mwakabayashi@vmware.com>
Fixes: 5c6e5b60aae4 ("NFS: Fix an Oops in the pNFS files and flexfiles connection setup to the DS")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4client.c