SUNRPC: Pass a pointer to struct rpc_xprt to the connect callback
Avoid another RCU dereference by passing the pointer to struct rpc_xprt from the caller. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -724,7 +724,7 @@ void xprt_connect(struct rpc_task *task)
|
||||
if (xprt_test_and_set_connecting(xprt))
|
||||
return;
|
||||
xprt->stat.connect_start = jiffies;
|
||||
xprt->ops->connect(task);
|
||||
xprt->ops->connect(xprt, task);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user