Trond Myklebust 1549210fcc NFSv4: Fix an Oops in the open recovery code
The open recovery code does not need to request a new value for the
mdsthreshold, and so does not allocate a struct nfs4_threshold.
The problem is that encode_getfattr_open() will still request an
mdsthreshold, and so we end up Oopsing in decode_attr_mdsthreshold.

This patch fixes encode_getfattr_open so that it doesn't request an
mdsthreshold when the caller isn't asking for one. It also fixes
decode_attr_mdsthreshold so that it errors if the server returns
an mdsthreshold that we didn't ask for (instead of Oopsing).

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Andy Adamson <andros@netapp.com>
2012-06-05 10:00:14 -04:00
..
2012-05-04 14:59:51 -04:00
2012-05-26 14:17:30 -04:00
2012-05-29 10:43:51 -07:00
2012-05-14 17:30:26 -07:00
2012-05-29 10:43:51 -07:00
2012-05-14 17:42:22 -07:00
2012-05-14 17:42:22 -07:00
2012-03-11 15:14:16 -04:00
2012-05-29 10:43:51 -07:00
2012-05-22 16:45:42 -04:00
2012-05-29 10:43:51 -07:00