]> git.baikalelectronics.ru Git - kernel.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)
commitf643608019110f3d7787531fe8603d91671275a5
tree569e566fa369423f9067dc872ac1a5e90bbe2af7
parenta263685849a5c89367812355e08887a1fd5e7e5e
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: a81c063949c4 ("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