diff options
author | Trond Myklebust <[email protected]> | 2021-07-26 07:58:49 -0400 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2021-08-09 16:57:04 -0400 |
commit | e20772cbdf463c12088837e5a08bde1b876bfd25 (patch) | |
tree | 3e81ab8676c16bbba86480779448ba71fcef885f /scripts/gdb/linux/tasks.py | |
parent | 71d3d0ebc894294ef9454e45a3ac2e9ba60b3351 (diff) |
NFSv4/pNFS: Fix a layoutget livelock loop
If NFS_LAYOUT_RETURN_REQUESTED is set, but there is no value set for
the layout plh_return_seq, we can end up in a livelock loop in which
every layout segment retrieved by a new call to layoutget is immediately
invalidated by pnfs_layout_need_return().
To get around this, we should just set plh_return_seq to the current
value of the layout stateid's seqid.
Fixes: d474f96104bd ("NFS: Don't return layout segments that are in use")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions