]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/nfs/pagelist.c
NFS: Don't reset pg_moreio in __nfs_pageio_add_request
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 13 Jul 2014 19:13:19 +0000 (15:13 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 13 Jul 2014 19:18:44 +0000 (15:18 -0400)
commitf563b89b182594f827b4100bd34f916339785a77
treecb8b6cc7f2d4605abcabadb85b003614b5761f65
parentaafe37504c70954fc104c88d9d15d553572dae69
NFS: Don't reset pg_moreio in __nfs_pageio_add_request

Once we've started sending unstable NFS writes, we do not want to
clear pg_moreio, or we may end up sending the very last request as
a stable write if the commit lists are still empty.

Do, however, reset pg_moreio in the case where we end up having to
recoalesce the write if an attempt to use pNFS failed.

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