summaryrefslogtreecommitdiff
path: root/scripts/include/array_size.h
diff options
context:
space:
mode:
authorLei Yin <yinlei2@lenovo.com>2026-04-24 12:26:41 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-06-08 22:02:05 +0300
commitd616d8bec3b11962735c9c9ff53fb4972162b324 (patch)
tree8a491b8f73207b58a5b921e63670ad5f60b7c344 /scripts/include/array_size.h
parentef74e4453856716dbdaba06eaee5251e37e6882e (diff)
downloadlinux-d616d8bec3b11962735c9c9ff53fb4972162b324.tar.xz
NFSv4.1/pNFS: fix LAYOUTCOMMIT retry loop on OLD_STATEID
Handle -NFS4ERR_OLD_STATEID in nfs4_layoutcommit_done(). This issue was reproduced on NFSv4.2. Without refreshing data->args.stateid, LAYOUTCOMMIT can keep retrying with the same stale stateid after OLD_STATEID, resulting in an unbounded retry loop. Refresh the layout stateid with nfs4_layout_refresh_old_stateid() and restart the RPC only after a successful refresh. Changes since v1: update refreshed stateid in inode layout header. Signed-off-by: Lei Yin <yinlei2@lenovo.com> [Anna: Fix up dprintk() format specifier] Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/include/array_size.h')
0 files changed, 0 insertions, 0 deletions