nfs41: don't clear tk_action on success
authorAndy Adamson <andros@netapp.com>
Fri, 4 Dec 2009 20:55:35 +0000 (15:55 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 4 Dec 2009 20:55:35 +0000 (15:55 -0500)
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index d0cb7cb367c1cf79cd748d4b935646c7c10eb561..68463d0ba9b3181a6b31574a549d148518cbf5c1 100644 (file)
@@ -534,7 +534,7 @@ int nfs4_setup_sequence(struct nfs_client *clp,
                goto out;
        ret = nfs41_setup_sequence(clp->cl_session, args, res, cache_reply,
                                   task);
-       if (ret != -EAGAIN) {
+       if (ret && ret != -EAGAIN) {
                /* terminate rpc task */
                task->tk_status = ret;
                task->tk_action = NULL;