Add missing recording of back channel attrs in nfsd4_session
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 26 Nov 2013 14:25:20 +0000 (22:25 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Jan 2014 23:18:46 +0000 (18:18 -0500)
commit 5b6feee9608dce7afd2646f457c93e612526d1d8 forgot
recording the back channel attrs in nfsd4_session.

nfsd just check the back channel attars by check_backchannel_attrs,
but do not  record it in nfsd4_session in the latest kernel.

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

index 105d6fa..1aed9be 100644 (file)
@@ -999,6 +999,8 @@ static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, stru
        spin_unlock(&nn->client_lock);
        memcpy(&new->se_fchannel, &cses->fore_channel,
                        sizeof(struct nfsd4_channel_attrs));
+       memcpy(&new->se_bchannel, &cses->back_channel,
+                       sizeof(struct nfsd4_channel_attrs));
        if (cses->flags & SESSION4_BACK_CHAN) {
                struct sockaddr *sa = svc_addr(rqstp);
                /*