pNFS/flexfiles: Don't prevent flexfiles client from retrying LAYOUTGET
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 14 Dec 2015 21:25:11 +0000 (16:25 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:40 +0000 (14:32 -0500)
commit2e5b29f0448be9ea8da3ee0412a2043fee59e131
treebba96a3ec2ae66890652f52552aeab9472824950
parent141b9b59ed8ae2602b2c285149ec8d4f6b05c4d9
pNFS/flexfiles: Don't prevent flexfiles client from retrying LAYOUTGET

Fix a bug in which flexfiles clients are falling back to I/O through the
MDS even when the FF_FLAGS_NO_IO_THRU_MDS flag is set.

The flexfiles client will always report errors through the LAYOUTRETURN
and/or LAYOUTERROR mechanisms, so it should normally be safe for it
to retry the LAYOUTGET until it fails or succeeds.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayoutdev.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h