nfsd: introduce a generic nfsd4_cb
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Sep 2014 10:19:17 +0000 (12:19 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Sep 2014 20:29:27 +0000 (16:29 -0400)
commit326129d02aea8efa1dfd1a210653a744e7c85239
tree7913c0841ec25ae310f48eb1e41311a208f53373
parent2faf3b43507556bd80e5274270db1fce1408f4ff
nfsd: introduce a generic nfsd4_cb

Add a helper to queue up a callback.  CB_NULL has a bit of special casing
because it is special in the specification, but all other new callback
operations will be able to share code with this and a few more changes
to refactor the callback code.

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