NFS: Fix up return value on fatal errors in nfs_page_async_flush()
authorTrond Myklebust <trondmy@gmail.com>
Tue, 29 Jan 2019 20:52:55 +0000 (15:52 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 29 Jan 2019 21:33:24 +0000 (16:33 -0500)
commit8fc75bed96bb94e23ca51bd9be4daf65c57697bf
tree1141c7be7a3e0a012b1d65726c2d80806a0f9505
parent80ff00172407e0aad4b10b94ef0816fc3e7813cb
NFS: Fix up return value on fatal errors in nfs_page_async_flush()

Ensure that we return the fatal error value that caused us to exit
nfs_page_async_flush().

Fixes: c373fff7bd25 ("NFSv4: Don't special case "launder"")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.12+
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/write.c