commit | 4a2544ce244bd27825a940824d1084505188695a | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Sat Jan 29 13:32:45 2022 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 13 21:01:01 2022 +0200 |
tree | 1f4b37ec705882680668c9916d501ed57a2fbc8c | |
parent | 9b9feec97c1fc7dd9bb69f62c4905cddf1801599 [diff] |
NFSv4: Protect the state recovery thread against direct reclaim [ Upstream commit 3e17898aca293a24dae757a440a50aa63ca29671 ] If memory allocation triggers a direct reclaim from the state recovery thread, then we can deadlock. Use memalloc_nofs_save/restore to ensure that doesn't happen. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>