NFSv4: Fix a race in NFSv4.1 server trunking discovery
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 4 Mar 2015 01:28:59 +0000 (20:28 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 4 Mar 2015 01:42:23 +0000 (20:42 -0500)
commit48d66b9749e39e0d4cc37d635df3f18906af38a6
treeb64b126f4b74bae8b4fd3db8d26147a2d394477f
parentef070dcb3989f553f5d84edf555eebc7e204099d
NFSv4: Fix a race in NFSv4.1 server trunking discovery

We do not want to allow a race with another NFS mount to cause
nfs41_walk_client_list() to establish a lease on our nfs_client before
we're done checking for trunking.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/client.c
fs/nfs/nfs4client.c
fs/nfs/nfs4state.c