From: Trond Myklebust Date: Sun, 5 Jul 2015 19:01:36 +0000 (-0400) Subject: NFSv4.1: nfs41_sequence_done should handle sequence flag errors X-Git-Tag: v4.1.12-111.0.20170918_2215~174 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e11327cf7bc9d0cdb8f78d813b31ad67304664f0;p=users%2Fjedix%2Flinux-maple.git NFSv4.1: nfs41_sequence_done should handle sequence flag errors Instead of just kicking off lease recovery, we should look into the sequence flag errors and handle them. Signed-off-by: Trond Myklebust (cherry picked from commit b15c7cdde4991be5058f442c6d08d404d56f662c) orabug: 25513155 Signed-off-by: Todd Vierling Reviewed-By: Jack Vogel Tested-by: xuan.qi@oracle.com Signed-off-by: Manjunath Patil --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 46b4a6a4a60b5..ad4474c8a870a 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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: