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)
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>

No differences found