]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
svc: Move kfree of deferral record to common code
authorTom Tucker <tom@opengridcomputing.com>
Mon, 5 Jan 2009 17:12:52 +0000 (11:12 -0600)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 7 Jan 2009 20:40:45 +0000 (15:40 -0500)
commit2779e3ae39645515cb6c1126634f47c28c9e7190
treee7904837510ba41552a11ebd21caaaf336281462
parentf05ef8db1abe68e3f6fc272efee51bc54ce528c5
svc: Move kfree of deferral record to common code

The rqstp structure has a pointer to a svc_deferred_req record
that is allocated when requests are deferred. This record is common
to all transports and can be freed in common code.

Move the kfree of the rq_deferred to the common svc_xprt_release
function.

This also fixes a memory leak in the RDMA transport which does not
kfree the dr structure in it's version of the xpo_release_rqst callback.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/svc_xprt.c
net/sunrpc/svcsock.c