]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 20:25:36 +0000 (13:25 -0700)
commited6ad7a5caac4bc865280a2946b54f348a3bb2f4
treefdd07894d68d5cedfe97b8f1efe9907305242099
parent21ec04003007ce13a632b1d53816e27f63e4dc3f
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c