Skip to content
Commit 515dcdcd authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: nfsiod should not block forever in mempool_alloc()



The concern is that since nfsiod is sometimes required to kick off a
commit, it can get locked up waiting forever in mempool_alloc() instead
of failing gracefully and leaving the commit until later.

Try to allocate from the slab first, with GFP_KERNEL | __GFP_NORETRY,
then fall back to a non-blocking attempt to allocate from the memory
pool.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent b2648015
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