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:21:00 +0000 (10:21 +0200)
commite4ca24bdcea96cf5143afe197b649060b40d5fd8
treed3f7735ef985ffde49deadc4b8991530181fdace
parentae63bd38d03afe36ba0b6d0b6f6fea0157d79718
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