aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs4.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@poochiereds.net>2016-05-17 12:28:46 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-05-17 15:48:12 -0400
commit83026d80a16ea6a4e4f06a994fc7831b1d8d6375 (patch)
tree7401207007bbce340734048cc65dbd1ec4977606 /include/linux/nfs4.h
parentpnfs: fix bad error handling in send_layoutget (diff)
downloadlinux-dev-83026d80a16ea6a4e4f06a994fc7831b1d8d6375.tar.xz
linux-dev-83026d80a16ea6a4e4f06a994fc7831b1d8d6375.zip
pnfs: lift retry logic from send_layoutget to pnfs_update_layout
If we get back something like NFS4ERR_OLD_STATEID, that will be translated into -EAGAIN, and the do/while loop in send_layoutget will drive the call again. This is not quite what we want, I think. An error like that is a sign that something has changed. That something could have been a concurrent LAYOUTGET that would give us a usable lseg. Lift the retry logic into pnfs_update_layout instead. That allows us to redo the layout search, and may spare us from having to issue an RPC. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/nfs4.h')
0 files changed, 0 insertions, 0 deletions