Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177239
b: refs/heads/master
c: 68bf05e
h: refs/heads/master
i:
  177237: 630ab2c
  177235: aa73d48
  177231: 9877e49
v: v3
  • Loading branch information
Andy Adamson authored and Trond Myklebust committed Dec 15, 2009
1 parent 63dbd9f commit d2f3b5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5523b84c40d34d2c30b45096fbb099b98e4b5a3
refs/heads/master: 68bf05efb7facbcf4a7b8d6b48a0800a90895511
12 changes: 10 additions & 2 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4935,14 +4935,22 @@ int nfs4_init_session(struct nfs_server *server)
{
struct nfs_client *clp = server->nfs_client;
struct nfs4_session *session;
unsigned int rsize, wsize;
int ret;

if (!nfs4_has_session(clp))
return 0;

rsize = server->rsize;
if (rsize == 0)
rsize = NFS_MAX_FILE_IO_SIZE;
wsize = server->wsize;
if (wsize == 0)
wsize = NFS_MAX_FILE_IO_SIZE;

session = clp->cl_session;
session->fc_attrs.max_rqst_sz = server->wsize + nfs41_maxwrite_overhead;
session->fc_attrs.max_resp_sz = server->rsize + nfs41_maxread_overhead;
session->fc_attrs.max_rqst_sz = wsize + nfs41_maxwrite_overhead;
session->fc_attrs.max_resp_sz = rsize + nfs41_maxread_overhead;

ret = nfs4_recover_expired_lease(server);
if (!ret)
Expand Down

0 comments on commit d2f3b5f

Please sign in to comment.