]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
SUNRPC: Make the transport-specific setup routine allocate rpc_xprt
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Oct 2006 18:44:27 +0000 (14:44 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Dec 2006 15:46:34 +0000 (10:46 -0500)
commitc8541ecdd5692bcfbcb5305cab9a873288d29175
tree45714725337f22a5eb27cbe5b87c3b01f37c9490
parente744cf2e3ab8535a8494a4cf0177de26f94586da
SUNRPC: Make the transport-specific setup routine allocate rpc_xprt

Change the location where the rpc_xprt structure is allocated so each
transport implementation can allocate a private area from the same
chunk of memory.

Note also that xprt->ops->destroy, rather than xprt_destroy, is now
responsible for freeing rpc_xprt when the transport is destroyed.

Test plan:
Connectathon.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c