Skip to content

Commit

Permalink
nfsd41: Backchannel: Add sequence arguments to callback RPC arguments
Browse files Browse the repository at this point in the history
Follow the model we use in the client. Make the sequence arguments
part of the regular RPC arguments.  None of the callbacks that are
soon to be implemented expect results that need to be passed back
to the caller, so we don't define a separate RPC results structure.
For session validation, the cb_sequence decoding will use a pointer
to the sequence arguments that are part of the RPC argument.

Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
[define struct nfsd4_cb_sequence here]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
Ricardo Labiaga authored and J. Bruce Fields committed Sep 16, 2009
1 parent 38524ab commit 132f977
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ enum nfs_cb_opnum4 {
cb_sequence_dec_sz + \
op_dec_sz)

struct nfs4_rpc_args {
void *args_op;
struct nfsd4_cb_sequence args_seq;
};

/*
* Generic encode routines from fs/nfs/nfs4xdr.c
*/
Expand Down
6 changes: 6 additions & 0 deletions include/linux/nfsd/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ typedef struct {
#define si_stateownerid si_opaque.so_stateownerid
#define si_fileid si_opaque.so_fileid

struct nfsd4_cb_sequence {
/* args/res */
u32 cbs_minorversion;
struct nfs4_client *cbs_clp;
};

struct nfs4_delegation {
struct list_head dl_perfile;
struct list_head dl_perclnt;
Expand Down

0 comments on commit 132f977

Please sign in to comment.