Trond Myklebust 181673cb21 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>
2023-01-18 11:30:14 +01:00
..
2022-07-02 16:27:33 +02:00
2019-08-06 19:06:51 +02:00
2021-09-22 11:48:02 +02:00
2022-08-25 11:14:55 +02:00
2022-11-25 17:40:29 +01:00
2023-01-18 11:30:08 +01:00
2022-06-14 16:59:24 +02:00
2021-05-22 10:59:50 +02:00
2021-12-14 10:18:07 +01:00