pNFS/flexfiles: Avoid spurious layout returns in ff_layout_choose_ds_for_read
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 16 Dec 2020 19:01:07 +0000 (14:01 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 16 Dec 2020 22:25:24 +0000 (17:25 -0500)
commit9bfffea3524b49d0268d01f8e7967f06c4d0a942
tree926874ba0a6acae49bacba779a5281a7a0a48d70
parentcac1d3a2b8f7f0817ac4feab76f5d3b12e4b02d7
pNFS/flexfiles: Avoid spurious layout returns in ff_layout_choose_ds_for_read

The callers of ff_layout_choose_ds_for_read() should decide whether or
not they want to return the layout on error. Sometimes, we may just want
to retry from the beginning.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c