提交 5bad5abe 编写于 作者: T Trond Myklebust

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

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: NPeter Zijlstra <peterz@infradead.org>
Acked-by: NWu Fengguang <fengguang.wu@intel.com>
上级 420e3646
......@@ -1426,7 +1426,7 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
nfsi->ncommit <= (nfsi->npages >> 1))
goto out_mark_dirty;
if (wbc->nonblocking)
if (wbc->nonblocking || wbc->for_background)
flags = 0;
ret = nfs_commit_inode(inode, flags);
if (ret >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册