diff options
| author | NeilBrown <[email protected]> | 2024-02-28 00:24:53 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2024-03-09 14:14:51 +0000 |
| commit | 2fdbc20036acda9e5694db74a032d3c605323005 (patch) | |
| tree | 8dc77e3e36b3cefb0c8ab3d1701d827ebd3a5eb8 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | NFS: remove sync_mode test from nfs_writepage_locked() (diff) | |
| download | kernel-2fdbc20036acda9e5694db74a032d3c605323005.tar.gz kernel-2fdbc20036acda9e5694db74a032d3c605323005.zip | |
NFS: avoid infinite loop in pnfs_update_layout.
If pnfsd_update_layout() is called on a file for which recovery has
failed it will enter a tight infinite loop.
NFS_LAYOUT_INVALID_STID will be set, nfs4_select_rw_stateid() will
return -EIO, and nfs4_schedule_stateid_recovery() will do nothing, so
nfs4_client_recover_expired_lease() will not wait. So the code will
loop indefinitely.
Break the loop by testing the validity of the open stateid at the top of
the loop.
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
