]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit384d4cb1a9ed0f09b583e1d3ca0f7a6e1043864f
tree8aec8e30b2f4cceaee9fa5ddaa88e694ea3e09dd
parentfdf6bc0aa26d62a3188bc096b42c8fcca55376ad
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