NFS: Pass error information to the pgio error cleanup routine
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Feb 2019 15:39:39 +0000 (10:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:22:23 +0000 (10:22 +0200)
commitb5891b624b9a5d3dd65b6c5a6601480bcb1a3dc3
tree414e3fc825c4b1c989da32f2e803e550613341fe
parent812de6dee596e10d46ce3d7dc4736fa288218117
NFS: Pass error information to the pgio error cleanup routine

[ Upstream commit df3accb849607a86278a37c35e6b313635ccc48b ]

Allow the caller to pass error information when cleaning up a failed
I/O request so that we can conditionally take action to cancel the
request altogether if the error turned out to be fatal.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/direct.c
fs/nfs/pagelist.c
fs/nfs/read.c
fs/nfs/write.c
include/linux/nfs_xdr.h