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 12:19:52 +0000 (13:19 +0100)
commit7ed608268e69c1ed68e48d18440e73fea83145d1
treeb12f48f991324f2798f6671f5a637bcb55b41221
parent18ae814610c519a1cc7e78b6a2bdd8fed2bd88c7
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