Skip to content

Commit

Permalink
NFSv4.1: Use session max response size for GETDEVICEINFO gdia_maxcount
Browse files Browse the repository at this point in the history
We prepare for the largest possible GETDEVICEINFO response, which
can not be greater than the negotiated session maximum response size.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Andy Adamson authored and Trond Myklebust committed Jun 28, 2012
1 parent 2f2c63b commit 05bf14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4filelayoutdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_fla
pdev->layout_type = LAYOUT_NFSV4_1_FILES;
pdev->pages = pages;
pdev->pgbase = 0;
pdev->pglen = PAGE_SIZE * max_pages;
pdev->pglen = max_resp_sz;
pdev->mincount = 0;

rc = nfs4_proc_getdeviceinfo(server, pdev);
Expand Down

0 comments on commit 05bf14a

Please sign in to comment.