NFS: Remove page group limit in nfs_flush_incompatible()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 18 Jul 2017 00:00:46 +0000 (20:00 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Aug 2017 15:54:47 +0000 (11:54 -0400)
nfs_try_to_update_request() should be able to cope now.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c

index 0b4d1ef168e019626e5ea0dcd6d6c6ec6da96887..08c1ce968cce2773fbb3ce0c390c665c3859ed33 100644 (file)
@@ -1205,8 +1205,6 @@ int nfs_flush_incompatible(struct file *file, struct page *page)
                l_ctx = req->wb_lock_context;
                do_flush = req->wb_page != page ||
                        !nfs_match_open_context(req->wb_context, ctx);
-               /* for now, flush if more than 1 request in page_group */
-               do_flush |= req->wb_this_page != req;
                if (l_ctx && flctx &&
                    !(list_empty_careful(&flctx->flc_posix) &&
                      list_empty_careful(&flctx->flc_flock))) {