Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-12678 lnet: convert lpni_refcount to a kref
[fs/lustre-release.git]
/
lnet
/
include
/
lnet
/
lib-types.h
diff --git
a/lnet/include/lnet/lib-types.h
b/lnet/include/lnet/lib-types.h
index
4ffb27c
..
9f8a817
100644
(file)
--- a/
lnet/include/lnet/lib-types.h
+++ b/
lnet/include/lnet/lib-types.h
@@
-46,6
+46,7
@@
#include <linux/uio.h>
#include <linux/semaphore.h>
#include <linux/types.h>
#include <linux/uio.h>
#include <linux/semaphore.h>
#include <linux/types.h>
+#include <linux/kref.h>
#include <uapi/linux/lnet/lnet-dlc.h>
#include <uapi/linux/lnet/lnetctl.h>
#include <uapi/linux/lnet/lnet-dlc.h>
#include <uapi/linux/lnet/lnetctl.h>
@@
-580,7
+581,7
@@
struct lnet_peer_ni {
/* peer's NID */
lnet_nid_t lpni_nid;
/* # refs */
/* peer's NID */
lnet_nid_t lpni_nid;
/* # refs */
-
atomic_t lpni_refcount
;
+
struct kref lpni_kref
;
/* health value for the peer */
atomic_t lpni_healthv;
/* recovery ping mdh */
/* health value for the peer */
atomic_t lpni_healthv;
/* recovery ping mdh */