Whamcloud - gitweb
LU-12678 o2iblnd: convert ibp_refcount to a kref 85/45685/4
authorJames Simmons <jsimmons@infradead.org>
Tue, 30 Nov 2021 18:21:49 +0000 (13:21 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Dec 2021 07:20:06 +0000 (07:20 +0000)
commit2968a40a163aa1b0f106c6d29fdf908a1748faad
tree7fe061f17df77103d92e78dacb422783adb8225a
parent852a4b264a984979dcef1fbd4685cab1350010ca
LU-12678 o2iblnd: convert ibp_refcount to a kref

This refcount is used exactly like a kref.  So change it to one.
kref uses refcount_t which will warn on increment-from-zero and
similar problems (which enabled with CONFIG option), so we don't
need the LASSERT calls.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: James Simmons <jsimmons@infradead.org>
Change-Id: I23ade8c2f768c70a1fd330e8c173e0d18f5ff976
Reviewed-on: https://review.whamcloud.com/45685
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd.h