OSDN Git Service

NFS: Fix memory allocation in rpc_alloc_task()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Mar 2022 21:37:01 +0000 (17:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Mar 2022 19:52:55 +0000 (15:52 -0400)
commit910ad38697d95bd32f45ba70fd6952f6c2956f28
treefad41d0c6a0b9c3d12a9a9aac28d8afddaa27287
parent33e5c765bc1ea5e06ea7603637f14d727e6fcdf3
NFS: Fix memory allocation in rpc_alloc_task()

As for rpc_malloc(), we first try allocating from the slab, then fall
back to a non-waiting allocation from the mempool.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/sched.c