Skip to content
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment