]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS/flexfiles: Fix up the ff_layout_write_pagelist failure path
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 29 Apr 2017 04:02:37 +0000 (00:02 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 29 Apr 2017 04:02:37 +0000 (00:02 -0400)
commit37f8aa16da8e9239092429e7a6dadf352897a92d
tree569e566fa369423f9067dc872ac1a5e90bbe2af7
parentbdebfccd0ea6fc00c5ea8c832401111958bd24cf
pNFS/flexfiles: Fix up the ff_layout_write_pagelist failure path

If the attempt to write through pNFS fails, we need to use the same
failure semantics as for the read path: If the FF_FLAGS_NO_IO_THRU_MDS
flag is set or we have sufficient valid DSes, then we must retry through
pNFS

Fixes: d67ae825a59d ("pnfs/flexfiles: Add the FlexFile Layout Driver")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pnfs.c