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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Jun 2014 13:53:32 +0000 (15:53 +0200)
commite663f78725cb0ad8944690eedd1ad66440a10602
tree32773596f7b0b878e7a6539f0f89e20faa6bca1a
parentc10dc65db493dc996c8a758eb919aa008f0a8fe4
NFSd: Move default initialisers from create_client() to alloc_client()

commit 5694c93e6c4954fa9424c215f75eeb919bddad64 upstream.

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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfsd/nfs4state.c