NFS: Avoid writeback threads getting stuck in mempool_alloc()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Mar 2022 17:48:36 +0000 (13:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 19:01:03 +0000 (21:01 +0200)
commitc74e2f6ecc51bd08bb5b0335477dba954a50592e
tree75f18f31ebe8f36382c9201de2055ccbf8e6ed7a
parent34681aeddcfcc0c47d45154f5d39310def87c55f
NFS: Avoid writeback threads getting stuck in mempool_alloc()

[ Upstream commit 0bae835b63c53f86cdc524f5962e39409585b22c ]

In a low memory situation, allow the NFS writeback code to fail without
getting stuck in infinite loops in mempool_alloc().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pagelist.c
fs/nfs/write.c