]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix forechannel attribute negotiation
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 8 Apr 2013 20:44:14 +0000 (16:44 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 9 Apr 2013 20:43:44 +0000 (16:43 -0400)
commit6f872d7854cffed381ecef6b24ab60cc6bc84013
tree36adf820afe85ed7644654c9f505c95cb0f774c3
parent9a85ef3fdd9b3aa6b7cdc01fd6b03d83cd9bcc7d
nfsd4: fix forechannel attribute negotiation

Negotiation of the 4.1 session forechannel attributes is a mess.  Fix:

- Move it all into check_forechannel_attrs instead of spreading
  it between that, alloc_session, and init_forechannel_attrs.
- set a minimum "slotsize" so that our drc memory limits apply
  even for small maxresponsesize_cached.  This also fixes some
  bugs when slotsize becomes <= 0.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c