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)
commitf0940f4b3284a00f38a5d42e6067c2aaa20e1f2e
tree450cd1a22f847863159bec811c5f99854310235b
parentad3dbe35c833c2d4d0bbf3f04c785d32f931e7c9
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: 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>
net/sunrpc/sched.c