NFSv4.1 reclaim complete must wait for completion
authorAndy Adamson <andros@netapp.com>
Wed, 9 Mar 2011 18:13:46 +0000 (13:13 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 10 Mar 2011 20:05:01 +0000 (15:05 -0500)
Signed-off-by: Andy Adamson <andros@netapp.com>
[Trond: fix whitespace errors]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index d3c705aa71f6a465d0eb7730d5a75d65459218df..0a13ae720dd0625c64fef969934e665ad453e47c 100644 (file)
@@ -5359,6 +5359,9 @@ static int nfs41_proc_reclaim_complete(struct nfs_client *clp)
                status = PTR_ERR(task);
                goto out;
        }
+       status = nfs4_wait_for_completion_rpc_task(task);
+       if (status == 0)
+               status = task->tk_status;
        rpc_put_task(task);
        return 0;
 out: