Commit 5bad5abe authored by Trond Myklebust's avatar Trond Myklebust

NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background is set

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
Acked-by: default avatarWu Fengguang <fengguang.wu@intel.com>
parent 420e3646
...@@ -1426,7 +1426,7 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr ...@@ -1426,7 +1426,7 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
nfsi->ncommit <= (nfsi->npages >> 1)) nfsi->ncommit <= (nfsi->npages >> 1))
goto out_mark_dirty; goto out_mark_dirty;
if (wbc->nonblocking) if (wbc->nonblocking || wbc->for_background)
flags = 0; flags = 0;
ret = nfs_commit_inode(inode, flags); ret = nfs_commit_inode(inode, flags);
if (ret >= 0) { if (ret >= 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment