PNFS fallback to MDS if no deviceid found
authorOlga Kornievskaia <kolga@netapp.com>
Tue, 7 May 2019 17:41:49 +0000 (13:41 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 9 May 2019 20:24:56 +0000 (16:24 -0400)
commitb1029c9bc078a6f1515f55dd993b507dcc7e3440
tree7f7d20e68711c3577c0474784b9ff23c8a4874d6
parent950a578c6128c2886e295b9c7ecb0b6b22fcc92b
PNFS fallback to MDS if no deviceid found

If we fail to find a good deviceid while trying to pnfs instead of
propogating an error back fallback to doing IO to the MDS. Currently,
code with fals the IO with EINVAL.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Fixes: 8d40b0f14846f ("NFS filelayout:call GETDEVICEINFO after pnfs_layout_process completes"
Cc: stable@vger.kernel.org # v4.11+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/filelayout/filelayout.c