aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-06-20 19:35:38 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 15:58:05 -0400
commit1a4edf0f46b0cb87dd5020481d355cd5cc456c47 (patch)
tree0c8f39c5caaaa89331300226061c183429d8d1da /fs/nfs/write.c
parent919e3bd9a87593520a2c5dfda27bd3e6599852ed (diff)
NFS: Fix commit policy for non-blocking calls to nfs_write_inode()
Now that the writes will schedule a commit on their own, we don't need nfs_write_inode() to schedule one if there are outstanding writes, and we're being called in non-blocking mode. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 051197cb9195..b1af5dee5e0a 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1941,7 +1941,7 @@ int nfs_write_inode(struct inode *inode, struct writeback_control *wbc)
1941 /* Don't commit yet if this is a non-blocking flush and there 1941 /* Don't commit yet if this is a non-blocking flush and there
1942 * are a lot of outstanding writes for this mapping. 1942 * are a lot of outstanding writes for this mapping.
1943 */ 1943 */
1944 if (nfsi->commit_info.ncommit <= (nfsi->nrequests >> 1)) 1944 if (mapping_tagged(inode->i_mapping, PAGECACHE_TAG_WRITEBACK))
1945 goto out_mark_dirty; 1945 goto out_mark_dirty;
1946 1946
1947 /* don't wait for the COMMIT response */ 1947 /* don't wait for the COMMIT response */