]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit832bc0226aabc78197c907ba2473ae6bfb1d425b
tree926874ba0a6acae49bacba779a5281a7a0a48d70
parentc38aa98e601c4c2930a3d7f1b79366c6341d86d4
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