Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252824
b: refs/heads/master
c: 868b89c
h: refs/heads/master
v: v3
  • Loading branch information
Mi Jinlong authored and J. Bruce Fields committed Apr 30, 2011
1 parent 3ce15c1 commit 4c4a4aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7c66360dc34e64742edabf4dc410070aa883119
refs/heads/master: 868b89c3dc25eec03985b31ff070e8f73c818980
11 changes: 11 additions & 0 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,13 @@ static void nfsd4_sequence_check_conn(struct nfsd4_conn *new, struct nfsd4_sessi
return;
}

static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session)
{
struct nfsd4_compoundargs *args = rqstp->rq_argp;

return args->opcnt > session->se_fchannel.maxops;
}

__be32
nfsd4_sequence(struct svc_rqst *rqstp,
struct nfsd4_compound_state *cstate,
Expand Down Expand Up @@ -1752,6 +1759,10 @@ nfsd4_sequence(struct svc_rqst *rqstp,
if (!session)
goto out;

status = nfserr_too_many_ops;
if (nfsd4_session_too_many_ops(rqstp, session))
goto out;

status = nfserr_badslot;
if (seq->slotid >= session->se_fchannel.maxreqs)
goto out;
Expand Down

0 comments on commit 4c4a4aa

Please sign in to comment.