X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fnfs%2Fwrite.c;h=42b92d7a9cc4ed7569c6115997a455816f3f09ac;hb=d2224e7afbf2a6556f4f8f25bc0e96d99ec4d2bd;hp=c8278f4046cba5a957705c1e43ee675dba388529;hpb=0fd08c5545a806c960a6597fae4a2e656eb7ead9;p=mv-sheeva.git diff --git a/fs/nfs/write.c b/fs/nfs/write.c index c8278f4046c..42b92d7a9cc 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1292,6 +1292,8 @@ static int nfs_commit_rpcsetup(struct list_head *head, task = rpc_run_task(&task_setup_data); if (IS_ERR(task)) return PTR_ERR(task); + if (how & FLUSH_SYNC) + rpc_wait_for_completion_task(task); rpc_put_task(task); return 0; }