]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 13 Jun 2021 23:36:49 +0000 (19:36 -0400)
commit3167689c6f8d0adeba5944dfa4a3d74b31dc8c87
tree346197804607c6b4f6399aaf4a597609f7408ba3
parent6117501025ffc681ab63b6a1756e88d2d58b959e
NFSv4: Initialise connection to the server in nfs4_alloc_client()

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: bb9e322db435 ("NFS: Fix an Oops in the pNFS files and flexfiles connection setup to the DS")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4client.c