aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2011-10-19 22:12:58 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-10-24 04:24:27 -0400
commit5423732a71577f7860c56a4eea2c34ff162ddd73 (patch)
tree5d7af992af7ff974796288272ce2604dad8f1284 /fs/nfsd/nfs4state.c
parent8b289b2c2355c3bea75f3e499b4aa251a3191382 (diff)
nfsd41: use SEQ4_STATUS_BACKCHANNEL_FAULT when cb_sequence is invalid
Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e8c2a3ec0e60..b51ad43b7ea1 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1945,8 +1945,14 @@ out:
1945 1945
1946 nfsd4_get_session(cstate->session); 1946 nfsd4_get_session(cstate->session);
1947 atomic_inc(&clp->cl_refcount); 1947 atomic_inc(&clp->cl_refcount);
1948 if (clp->cl_cb_state == NFSD4_CB_DOWN) 1948 switch (clp->cl_cb_state) {
1949 case NFSD4_CB_DOWN:
1949 seq->status_flags |= SEQ4_STATUS_CB_PATH_DOWN; 1950 seq->status_flags |= SEQ4_STATUS_CB_PATH_DOWN;
1951 break;
1952 case NFSD4_CB_FAULT:
1953 seq->status_flags |= SEQ4_STATUS_BACKCHANNEL_FAULT;
1954 break;
1955 }
1950 } 1956 }
1951 kfree(conn); 1957 kfree(conn);
1952 spin_unlock(&client_lock); 1958 spin_unlock(&client_lock);