Whamcloud - gitweb
LU-16213 kfilnd: Finalize replay TNs with deleted peer
[fs/lustre-release.git] / lnet / klnds / kfilnd / kfilnd.h
index 076085d..c027d7a 100644 (file)
@@ -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