]> git.baikalelectronics.ru Git - 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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 20:32:16 +0000 (15:32 -0500)
commit1f2191f781a3d180fb5a15e0a111aa9761fdc219
tree450cd1a22f847863159bec811c5f99854310235b
parent3762fd8929769d621df3c9f71797d3b46355cf89
SUNRPC: Set memalloc_nofs_save() for sync tasks

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: 280822c90b3f ("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>
net/sunrpc/sched.c