NFS: Initialise the nfs_net->nfs_client_lock
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Feb 2012 05:05:11 +0000 (00:05 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Feb 2012 05:19:49 +0000 (00:19 -0500)
commit4c03ae4a897b52e0e8fc38749606549eaa20d5b7
tree91d16026684c82e841f78cbc88e61d518eb701c4
parent3b64739fb928c34b13db6b5adcb0d3efb19e78be
NFS: Initialise the nfs_net->nfs_client_lock

Ensure that we initialise the nfs_net->nfs_client_lock spinlock.
Also ensure that nfs_server_remove_lists() doesn't try to
dereference server->nfs_client before that is initialised.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
fs/nfs/client.c