]> git.baikalelectronics.ru Git - kernel.git/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)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 May 2014 16:38:46 +0000 (12:38 -0400)
commitfe102667fdcc09efb71de8c6bd4aa0e8e5b63e2e
tree83baf7f3dfac5133c655190cce5dc0fd0af77550
parent34f33ab6d5877b5b39da30a56c42fbea36ff190e
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