]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
SUNRPC: Set memalloc_nofs_save() for sync tasks
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 3 Mar 2021 13:47:16 +0000 (08:47 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:32:01 +0000 (18:32 +0200)
commitdca15c73cf668c82038a0f3548cb8680033559e7
treebf7e7a68f0ef7f1e19cad7756a96bddaf2894935
parent832f558c7bcc3dfc4ed5a13b97b3b5cfdd50c18e
SUNRPC: Set memalloc_nofs_save() for sync tasks

BugLink: https://bugs.launchpad.net/bugs/1920246
[ Upstream commit f0940f4b3284a00f38a5d42e6067c2aaa20e1f2e ]

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: a1231fda7e94 ("SUNRPC: Set memalloc_nofs_save() on all rpciod/xprtiod jobs")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/sunrpc/sched.c