nfsd: split nfsd4_callback initialization and use
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Sep 2014 10:19:18 +0000 (12:19 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Sep 2014 20:29:28 +0000 (16:29 -0400)
commitf0b5de1b6b8b66552bcc7ae692f45940d411cf05
treef3529730175ae2e4cca4ae1e2e99b4a6f51e1f3f
parent326129d02aea8efa1dfd1a210653a744e7c85239
nfsd: split nfsd4_callback initialization and use

Split out initializing the nfs4_callback structure from using it.  For
the NULL callback this gets rid of tons of pointless re-initializations.

Note that I don't quite understand what protects us from running multiple
NULL callbacks at the same time, but at least this chance doesn't make
it worse..

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h