From: Andy Adamson <andros@xxxxxxxxxx> nfs4_init_session is called after CREATE_SESSION has set the ca_maxrequestsize and ca_maxresponsesize values obtained from the server. Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/nfs4session.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/nfs/nfs4session.c b/fs/nfs/nfs4session.c index c4e225e..7ac14cc 100644 --- a/fs/nfs/nfs4session.c +++ b/fs/nfs/nfs4session.c @@ -499,13 +499,11 @@ int nfs4_init_session(struct nfs_server *server) session = clp->cl_session; spin_lock(&clp->cl_lock); if (test_and_clear_bit(NFS4_SESSION_INITING, &session->session_state)) { - /* Initialise targets and channel attributes */ + /* Initialise targets */ session->fc_target_max_rqst_sz = target_max_rqst_sz; - session->fc_attrs.max_rqst_sz = target_max_rqst_sz; session->fc_target_max_resp_sz = target_max_resp_sz; - session->fc_attrs.max_resp_sz = target_max_resp_sz; } else { - /* Just adjust the targets */ + /* Adjust the targets and perhaps reset the session */ if (target_max_rqst_sz > session->fc_target_max_rqst_sz) { session->fc_target_max_rqst_sz = target_max_rqst_sz; set_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state); -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html