Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 420e3646
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {