]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
NFSv4.1: nfs41_sequence_done should handle sequence flag errors
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 5 Jul 2015 19:01:36 +0000 (15:01 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 15 Sep 2017 03:27:49 +0000 (20:27 -0700)
Instead of just kicking off lease recovery, we should look into the
sequence flag errors and handle them.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
(cherry picked from commit b15c7cdde4991be5058f442c6d08d404d56f662c)

orabug: 25513155
Signed-off-by: Todd Vierling <todd.vierling@oracle.com>
Reviewed-By: Jack Vogel <jack.vogel@oracle.com>
Tested-by: xuan.qi@oracle.com
Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
fs/nfs/nfs4proc.c

index 46b4a6a4a60b501d5ea3d7860546fa4d67abb681..ad4474c8a870a8a55a52e969b3f57704137dd321 100644 (file)
@@ -622,8 +622,7 @@ int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *res)
                clp = session->clp;
                do_renew_lease(clp, res->sr_timestamp);
                /* Check sequence flags */
-               if (res->sr_status_flags != 0)
-                       nfs4_schedule_lease_recovery(clp);
+               nfs41_handle_sequence_flag_errors(clp, res->sr_status_flags);
                nfs41_update_target_slotid(slot->table, slot, res);
                break;
        case 1: