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)
commit55c760cfc40d75b4d8a17d56580ec306db2ab14f
tree36adf820afe85ed7644654c9f505c95cb0f774c3
parent373cd4098a6392395af63af220d989df00b444f7
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