Skip to content
Snippets Groups Projects
Commit 33e5c765 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d0afde5f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment