]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/sunrpc/xprtsock.c
SUNRPC: Pass a pointer to struct rpc_xprt to the connect callback
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 8 Jan 2013 14:26:49 +0000 (09:26 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 1 Feb 2013 15:13:47 +0000 (10:13 -0500)
commit1b092092bf0e2e8b7af1c2a03f615b4e60b05d47
tree4efc332b4648144fa055fa72f1867cbc2b30e756
parenta4f0835c604f80f945ab3e72ffd00547145c4b2b
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>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c