Whamcloud - gitweb
LU-13005 lnet: Support checking for MD leaks. 59/38059/4
authorMr NeilBrown <neilb@suse.de>
Wed, 25 Mar 2020 05:26:28 +0000 (16:26 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Apr 2020 08:10:53 +0000 (08:10 +0000)
commitb7278ecc699b5bd7c431222c93f1f209f02d4670
tree318211ceb77b0189b9cf1e9724d6a00b36eaf759
parentf1761cbe6b1243edd7a69c68c401d7285f7f3b38
LU-13005 lnet: Support checking for MD leaks.

Since we dropped the refcounting on LNetEQ we no longer get
confirmation that all MDs for a given handler a gone by the
time they should be.

So add lnet_assert_handler_unused() which searches the per-cpt
containers and ensures there are no MDs for a given handler, and call
that are the same place that we used to call LNetEQFree().

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ic04e5b4f67a79055c49994bd1d92e275fa71dd4b
Reviewed-on: https://review.whamcloud.com/38059
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/api.h
lnet/lnet/api-ni.c
lnet/lnet/lib-md.c
lnet/lnet/peer.c
lnet/selftest/rpc.c
lustre/ptlrpc/events.c