diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-14 22:02:22 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-22 15:52:55 -0400 |
commit | 33e5c765bc1ea5e06ea7603637f14d727e6fcdf3 (patch) | |
tree | 03fce3288dbf7e4ab704cd96ccc88a6b6613f6db /mm/memtest.c | |
parent | d0afde5fc6fb13531e2434fc4b6a65f131671f68 (diff) | |
download | linux-33e5c765bc1ea5e06ea7603637f14d727e6fcdf3.tar.bz2 |
NFS: Fix memory allocation in rpc_malloc()
When in a low memory situation, we do want rpciod to kick off direct
reclaim in the case where that helps, however we don't want it looping
forever in mempool_alloc().
So first try allocating from the slab using GFP_KERNEL | __GFP_NORETRY,
and then fall back to a GFP_NOWAIT allocation from the mempool.
Ditto for rpc_alloc_task()
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'mm/memtest.c')
0 files changed, 0 insertions, 0 deletions