Browse Source

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>
Andy Adamson 14 năm trước cách đây
mục cha
commit
c34c32ea97
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      fs/nfs/nfs4proc.c

+ 3 - 0
fs/nfs/nfs4proc.c

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