NFS41: pop some layoutget errors to application
authorPeng Tao <tao.peng@primarydata.com>
Thu, 3 Dec 2015 18:57:48 +0000 (02:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 07:44:38 +0000 (08:44 +0100)
commit58cc0b4098d342ed0d12050d97ce021c387b140e
treef5c35ec892de21cf0ddec899774b8fe4c229d717
parentcbb0f82ebbc46bd6c7a395636c57eddbc6316dfe
NFS41: pop some layoutget errors to application

commit d600ad1f2bdbf97c4818dcc85b174f72c90c21bd upstream.

For ERESTARTSYS/EIO/EROFS/ENOSPC/E2BIG in layoutget, we
should just bail out instead of hiding the error and
retrying inband IO.

Change all the call sites to pop the error all the way up.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/direct.c
fs/nfs/filelayout/filelayout.c
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pagelist.c
fs/nfs/pnfs.c
fs/nfs/read.c