diff options
| author | Trond Myklebust <[email protected]> | 2025-02-01 20:00:09 +0000 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2025-02-19 21:45:24 +0000 |
| commit | 8f8df955f078e1a023ee55161935000a67651f38 (patch) | |
| tree | adee549ebc9c6fc20627eecaff58a7c51a1c3eb8 /tools/perf/scripts/python/flamegraph.py | |
| parent | SUNRPC: Prevent looping due to rpc_signal_task() races (diff) | |
| download | kernel-8f8df955f078e1a023ee55161935000a67651f38.tar.gz kernel-8f8df955f078e1a023ee55161935000a67651f38.zip | |
NFSv4: Fix a deadlock when recovering state on a sillyrenamed file
If the file is sillyrenamed, and slated for delete on close, it is
possible for a server reboot to triggeer an open reclaim, with can again
race with the application call to close(). When that happens, the call
to put_nfs_open_context() can trigger a synchronous delegreturn call
which deadlocks because it is not marked as privileged.
Instead, ensure that the call to nfs4_inode_return_delegation_on_close()
catches the delegreturn, and schedules it asynchronously.
Reported-by: Li Lingfeng <[email protected]>
Fixes: adb4b42d19ae ("Return the delegation when deleting sillyrenamed files")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
