diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-12-01 16:37:42 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-12-01 16:37:42 -0500 |
commit | 111d489f0fb431f4ae85d96851fbf8d3248c09d8 (patch) | |
tree | 52314237a592989956bd772dc8eaa712e2f8cc92 /fs | |
parent | 4f38e4aadcca319650c0de31edf7193d7c384de2 (diff) |
NFSv4.1: Ensure that we handle _all_ SEQUENCE status bits.
Currently, the code assumes that the SEQUENCE status bits are mutually
exclusive. They are not...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org [>= 2.6.34]
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 1da95e3947bb..da8d73ed9e0f 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -1530,16 +1530,16 @@ void nfs41_handle_sequence_flag_errors(struct nfs_client *clp, u32 flags) | |||
1530 | { | 1530 | { |
1531 | if (!flags) | 1531 | if (!flags) |
1532 | return; | 1532 | return; |
1533 | else if (flags & SEQ4_STATUS_RESTART_RECLAIM_NEEDED) | 1533 | if (flags & SEQ4_STATUS_RESTART_RECLAIM_NEEDED) |
1534 | nfs41_handle_server_reboot(clp); | 1534 | nfs41_handle_server_reboot(clp); |
1535 | else if (flags & (SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED | | 1535 | if (flags & (SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED | |
1536 | SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED | | 1536 | SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED | |
1537 | SEQ4_STATUS_ADMIN_STATE_REVOKED | | 1537 | SEQ4_STATUS_ADMIN_STATE_REVOKED | |
1538 | SEQ4_STATUS_LEASE_MOVED)) | 1538 | SEQ4_STATUS_LEASE_MOVED)) |
1539 | nfs41_handle_state_revoked(clp); | 1539 | nfs41_handle_state_revoked(clp); |
1540 | else if (flags & SEQ4_STATUS_RECALLABLE_STATE_REVOKED) | 1540 | if (flags & SEQ4_STATUS_RECALLABLE_STATE_REVOKED) |
1541 | nfs41_handle_recallable_state_revoked(clp); | 1541 | nfs41_handle_recallable_state_revoked(clp); |
1542 | else if (flags & (SEQ4_STATUS_CB_PATH_DOWN | | 1542 | if (flags & (SEQ4_STATUS_CB_PATH_DOWN | |
1543 | SEQ4_STATUS_BACKCHANNEL_FAULT | | 1543 | SEQ4_STATUS_BACKCHANNEL_FAULT | |
1544 | SEQ4_STATUS_CB_PATH_DOWN_SESSION)) | 1544 | SEQ4_STATUS_CB_PATH_DOWN_SESSION)) |
1545 | nfs41_handle_cb_path_down(clp); | 1545 | nfs41_handle_cb_path_down(clp); |