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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:28 +0000 (14:35 +0100)
commit9aaa2ef05a43367fdf9ec35cf7f586631c824ac8
treee2f1a0384a5cbaf5112c041731e996fec3040435
parent86e9e3773445044ec227b0ace13772bc43d9fc24
NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()

commit 8127d82705998568b52ac724e28e00941538083d upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pagelist.c