NFS: Use GFP_NOIO for two allocations in writeback
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 19 Apr 2017 14:11:33 +0000 (10:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:48 +0000 (15:44 +0200)
commitf2b6f508c5417bc5f2a5a30268b5b75ae3b4a754
treec09b8aea1a247f53d1022b88f8022b23c4aab309
parenta8c35e5c88def2c07cd0ff1aca1af2b06363b293
NFS: Use GFP_NOIO for two allocations in writeback

commit ae97aa524ef495b6276fd26f5d5449fb22975d7c upstream.

Prevent a deadlock that can occur if we wait on allocations
that try to write back our pages.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Fixes: 00bfa30abe869 ("NFS: Create a common pgio_alloc and pgio_release...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pagelist.c