]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: honor rpc_task's timeout value in rpcb_create()
authorEryu Guan <eguan@linux.alibaba.com>
Mon, 22 Mar 2021 05:29:04 +0000 (13:29 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Apr 2021 13:04:21 +0000 (09:04 -0400)
commit78c6f658d8d6ec9afef3095aef746e8845d886e2
tree444a635dbbb980c1eed7ec2db383953cc7972706
parent1b7910309a2dde2ec33c86e92cf525ce7bc0858a
sunrpc: honor rpc_task's timeout value in rpcb_create()

Currently rpcbind client is created without setting rpc timeout (thus
using the default value). But if the rpc_task already has a customized
timeout in its tk_client field, it's also ignored.

Let's use the same timeout setting in rpc_task->tk_client->cl_timeout
for rpcbind connection.

Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/rpcb_clnt.c