From: Trond Myklebust Date: Sat, 20 Feb 2010 01:02:24 +0000 (-0800) Subject: NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background is set X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5bad5abec4058c5214bfc72cec418348d6747977;p=openwrt%2Fstaging%2Fblogic.git NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background is set Signed-off-by: Trond Myklebust Acked-by: Peter Zijlstra Acked-by: Wu Fengguang --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index fc05e35da6a9..704e67d392e5 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -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) {