diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-01-08 09:26:49 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-02-01 10:13:47 -0500 |
commit | 1b092092bf0e2e8b7af1c2a03f615b4e60b05d47 (patch) | |
tree | 4efc332b4648144fa055fa72f1867cbc2b30e756 /include/linux | |
parent | a4f0835c604f80f945ab3e72ffd00547145c4b2b (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 951cb9b7d02b..7dd598a5c9aa 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -117,7 +117,7 @@ struct rpc_xprt_ops { | |||
117 | void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task); | 117 | void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task); |
118 | void (*rpcbind)(struct rpc_task *task); | 118 | void (*rpcbind)(struct rpc_task *task); |
119 | void (*set_port)(struct rpc_xprt *xprt, unsigned short port); | 119 | void (*set_port)(struct rpc_xprt *xprt, unsigned short port); |
120 | void (*connect)(struct rpc_task *task); | 120 | void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task); |
121 | void * (*buf_alloc)(struct rpc_task *task, size_t size); | 121 | void * (*buf_alloc)(struct rpc_task *task, size_t size); |
122 | void (*buf_free)(void *buffer); | 122 | void (*buf_free)(void *buffer); |
123 | int (*send_request)(struct rpc_task *task); | 123 | int (*send_request)(struct rpc_task *task); |