Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153699
b: refs/heads/master
c: 5d77ddf
h: refs/heads/master
i:
  153697: 52e6fdc
  153695: f21b08d
v: v3
  • Loading branch information
Andy Adamson authored and J. Bruce Fields committed Jun 17, 2009
1 parent e64cb4e commit 9eb486e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 6c18ba9f5e506b8115b89b1aa7bdc25178f40b0a
refs/heads/master: 5d77ddfbcb062f2617ea79d7a371b4bc78f28417
5 changes: 5 additions & 0 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ static int set_forechannel_maxreqs(struct nfsd4_channel_attrs *fchan)
{
int status = 0, np = fchan->maxreqs * NFSD_PAGES_PER_SLOT;

if (fchan->maxreqs < 1)
return nfserr_inval;
else if (fchan->maxreqs > NFSD_MAX_SLOTS_PER_SESSION)
fchan->maxreqs = NFSD_MAX_SLOTS_PER_SESSION;

spin_lock(&nfsd_serv->sv_lock);
if (np + nfsd_serv->sv_drc_pages_used > nfsd_serv->sv_drc_max_pages)
np = nfsd_serv->sv_drc_max_pages - nfsd_serv->sv_drc_pages_used;
Expand Down

0 comments on commit 9eb486e

Please sign in to comment.