summaryrefslogtreecommitdiff
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-06-01 18:23:01 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-06-22 09:59:42 -0400
commit6b56a89833fa7903595c8d138bb4927187315cba (patch)
tree77160ce6d2b08a121542d47f1d889011c595c464 /fs/nfs/file.c
parentca0daa277acac1029f74d9fea838c9e507398226 (diff)
downloadlwn-6b56a89833fa7903595c8d138bb4927187315cba.tar.gz
lwn-6b56a89833fa7903595c8d138bb4927187315cba.zip
NFS: Kill NFS_INO_NFS_INO_FLUSHING: it is a performance killer
filemap_datawrite() and friends already deal just fine with livelock. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 2d39d9f9da7d..29d7477a62e8 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -360,14 +360,6 @@ static int nfs_write_begin(struct file *file, struct address_space *mapping,
start:
/*
- * Prevent starvation issues if someone is doing a consistency
- * sync-to-disk
- */
- ret = wait_on_bit_action(&NFS_I(mapping->host)->flags, NFS_INO_FLUSHING,
- nfs_wait_bit_killable, TASK_KILLABLE);
- if (ret)
- return ret;
- /*
* Wait for O_DIRECT to complete
*/
inode_dio_wait(mapping->host);