Commit d9781dbe authored by Benjamin Coddington's avatar Benjamin Coddington Committed by Zheng Zengkai
Browse files

SUNRPC: Set memalloc_nofs_save() for sync tasks



stable inclusion
from stable-5.10.24
commit faa48b23d0e39e0120e728e66ac58cb69690a609
bugzilla: 51348

--------------------------------

[ Upstream commit f0940f4b ]

We could recurse into NFS doing memory reclaim while sending a sync task,
which might result in a deadlock.  Set memalloc_nofs_save for sync task
execution.

Fixes: a1231fda ("SUNRPC: Set memalloc_nofs_save() on all rpciod/xprtiod jobs")
Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent b76f5e60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment