summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2011-03-09 19:13:46 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-10 21:05:01 +0100
commitc34c32ea97718bb24fc06158733580003ba89211 (patch)
treee11ca3f95ecc237499cd5d06f2377cc327c208b1 /fs
parentNFSv4: remove duplicate clientid in struct nfs_client (diff)
downloadlinux-c34c32ea97718bb24fc06158733580003ba89211.tar.xz
linux-c34c32ea97718bb24fc06158733580003ba89211.zip
NFSv4.1 reclaim complete must wait for completion
Signed-off-by: Andy Adamson <andros@netapp.com> [Trond: fix whitespace errors] Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to '')
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index d3c705aa71f6..0a13ae720dd0 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -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: