]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sunrpc: don't check for failure from mempool_alloc()
authorNeilBrown <neilb@suse.com>
Mon, 10 Apr 2017 02:19:40 +0000 (12:19 +1000)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Apr 2017 17:44:57 +0000 (13:44 -0400)
commit62b2417e84ba0734d3f4f95a17e6f5f0be54d75a
treef3389ff25d0fa5282531b726a9a9d8d3086374cd
parent518662e0fcb9fa241fe90a337b59bc5066b2a930
sunrpc: don't check for failure from mempool_alloc()

When mempool_alloc() is allowed to sleep (GFP_NOIO allows
sleeping) it cannot fail.
So rpc_alloc_task() cannot fail, so rpc_new_task doesn't need
to test for failure.
Consequently rpc_new_task() cannot fail, so the callers
don't need to test.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/clnt.c
net/sunrpc/sched.c