nfsd41: bound forechannel drc size by memory usage
authorAndy Adamson <andros@netapp.com>
Fri, 28 Aug 2009 12:45:01 +0000 (08:45 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 2 Sep 2009 02:24:05 +0000 (22:24 -0400)
commita649637c73a36174287a403cdda7607177d64523
tree8aec8e30b2f4cceaee9fa5ddaa88e694ea3e09dd
parenta06b1261bdb580b35967d0e055d1ab131b332254
nfsd41: bound forechannel drc size by memory usage

By using the requested ca_maxresponsesize_cached * ca_maxresponses to bound
a forechannel drc request size, clients can tailor a session to usage.

For example, an I/O session (READ/WRITE only) can have a much smaller
ca_maxresponsesize_cached (for only WRITE compound responses) and a lot larger
ca_maxresponses to service a large in-flight data window.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c
include/linux/nfsd/state.h