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-16213 kfilnd: Finalize replay TNs with deleted peer
[fs/lustre-release.git]
/
lnet
/
klnds
/
kfilnd
/
kfilnd.h
diff --git
a/lnet/klnds/kfilnd/kfilnd.h
b/lnet/klnds/kfilnd/kfilnd.h
index
076085d
..
c027d7a
100644
(file)
--- a/
lnet/klnds/kfilnd/kfilnd.h
+++ b/
lnet/klnds/kfilnd/kfilnd.h
@@
-238,6
+238,11
@@
struct kfilnd_peer {
time64_t kp_hello_ts;
};
+static inline bool kfilnd_peer_deleted(struct kfilnd_peer *kp)
+{
+ return atomic_read(&kp->kp_remove_peer) > 0;
+}
+
/* Sets kp_hello_sending
* Returns true if it was already set
* Returns false otherwise