summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2018-01-17 00:38:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-16 22:06:46 +0300
commit4be335576ecabc281ddc688a2057aca5bf6a4fd4 (patch)
tree4f6d5bd9db1a48f794de2c9e21ec88f2da660449 /include/linux
parentd2a7f7a32d709c35744e5efee89c95cf31ef6f51 (diff)
downloadlinux-4be335576ecabc281ddc688a2057aca5bf6a4fd4.tar.xz
nfs41: do not return ENOMEM on LAYOUTUNAVAILABLE
commit 7ff4cff637aa0bd2abbd81f53b2a6206c50afd95 upstream. A pNFS server may return LAYOUTUNAVAILABLE error on LAYOUTGET for files which don't have any layout. In this situation pnfs_update_layout currently returns NULL. As this NULL is converted into ENOMEM, IO requests fails instead of falling back to MDS. Do not return ENOMEM on LAYOUTUNAVAILABLE and let client retry through MDS. Fixes 8d40b0f14846f. I will suggest to backport this fix to affected stable branches. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> [trondmy: Use IS_ERR_OR_NULL()] Fixes: 8d40b0f14846 ("NFS filelayout:call GETDEVICEINFO after...") Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions