Dipit Grover has uploaded this change for review.

View Change

nfs_tcp_dispatch: Register callback to un-reference user-data during xprt destroy

When destroying a tcp transport (svc-xprt), the references (to and
from it) held through the transport's user-data need to be released.
Such unreleased references to the transport object would otherwise
not allow it to be completely destroyed, resulting in leakage.
Additionally, the unreleased references to other data held by this
transport object would prevent that data to correctly use the
transport due to it being under-destruction.

This CL registers a callback function with ntirpc for tcp transport
to perform the above un-referencing whenever a tcp transport object
is to be destroyed.

Change-Id: Ie1ab0415f98030b75feead7ac4b261eb996f43e7
Signed-off-by: Dipit Grover <dipit@google.com>
---
M src/MainNFSD/nfs_rpc_dispatcher_thread.c
1 file changed, 15 insertions(+), 0 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/64/1172164/1

To view, visit change 1172164. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ie1ab0415f98030b75feead7ac4b261eb996f43e7
Gerrit-Change-Number: 1172164
Gerrit-PatchSet: 1
Gerrit-Owner: Dipit Grover <dipitgrover@gmail.com>
Gerrit-MessageType: newchange