Skip to content

Commit

Permalink
NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background …
Browse files Browse the repository at this point in the history
…is set

Signed-off-by: Trond Myklebust <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Acked-by: Wu Fengguang <[email protected]>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 5, 2010
1 parent 420e364 commit 5bad5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5bad5ab

Please sign in to comment.