NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Feb 2019 21:08:25 +0000 (16:08 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 20:14:20 +0000 (15:14 -0500)
commit8127d82705998568b52ac724e28e00941538083d
tree54bddab707e6f1dba1724f2df85d3215a7c0f68d
parent4d91969ed4dbcefd0e78f77494f0cb8fada9048a
NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()

If the I/O completion failed with a fatal error, then we should just
exit nfs_pageio_complete_mirror() rather than try to recoalesce.

Fixes: a7d42ddb3099 ("nfs: add mirroring support to pgio layer")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.0+
fs/nfs/pagelist.c