NFSd: Move default initialisers from create_client() to alloc_client()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 18 Apr 2014 18:43:56 +0000 (14:43 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 May 2014 16:38:46 +0000 (12:38 -0400)
commit5694c93e6c4954fa9424c215f75eeb919bddad64
tree83baf7f3dfac5133c655190cce5dc0fd0af77550
parentfc208d026be0c7d60db9118583fc62f6ca97743d
NFSd: Move default initialisers from create_client() to alloc_client()

Aside from making it clearer what is non-trivial in create_client(), it
also fixes a bug whereby we can call free_client() before idr_init()
has been called.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c