diff options
| author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-11-04 13:20:01 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 11:30:14 +0100 |
| commit | 181673cb215e1e7cd81cae40ba3bd4668a7adac2 (patch) | |
| tree | 5fcebdef42e737991e69ab18221570979fba3ea9 /drivers | |
| parent | 7e79794be1c1f96a395a317898a6639c803c2f0c (diff) | |
NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn
[ Upstream commit 51069e4aef6257b0454057359faed0ab0c9af083 ]
If we're asked to recover open state while a delegation return is
outstanding, then the state manager thread cannot use a cached open, so
if the server returns a delegation, we can end up deadlocked behind the
pending delegreturn.
To avoid this problem, let's just ask the server not to give us a
delegation unless we're explicitly reclaiming one.
Fixes: be36e185bd26 ("NFSv4: nfs4_open_recover_helper() must set share access")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
