Whamcloud - gitweb
LU-1577 lnet: should export lnet_net2ni
authorLiang Zhen <liang@whamcloud.com>
Thu, 28 Jun 2012 01:52:38 +0000 (09:52 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Jun 2012 09:40:05 +0000 (05:40 -0400)
commitb98be5f6718ba963d703722620bd7c35912375cd
tree516aa93499e896080e46ca527821720091401fc4
parentc04dddd71d140c61f654681c1993f5bb1ded4f48
LU-1577 lnet: should export lnet_net2ni

We don't want to export lnet_net2ni_locked because it requires
an extra parameter CPT number, which is internal to LNet and
confusing to user, also, no LND is using it/should use it, however,
LND does need lnet_net2ni() which is an inline function and it is
referring lnet_net2ni_locked(), which means it forces us to export
lnet_net2ni_locked.
The way to fix should be simple, we can just dis-inline lnet_net2ni()
and export itself instead of exporting lnet_net2ni_locked.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: I251d42d47770211ae6238ee56972fb9aacd63599
Reviewed-on: http://review.whamcloud.com/3207
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Doug Oucharek <doug@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c