Commit 9f088dba authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

staging/lustre: use jiffies for lp_last_query times

The recently introduced lnet_peer_set_alive() function uses
get_seconds() to read the current time into a shared variable,
but all other uses of that variable compare it to jiffies values.

This changes the current use to jiffies as well for consistency.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: af3fa7c7 ("staging/lustre/lnet: peer aliveness status and NI status")
Cc: Liang Zhen <liang.zhen@intel.com>
Cc: James Simmons <uja.ornl@gmail.com>
Cc: Isaac Huang <he.huang@intel.com>
Signed-off-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7fb7027c
...@@ -680,7 +680,7 @@ void lnet_debug_peer(lnet_nid_t nid); ...@@ -680,7 +680,7 @@ void lnet_debug_peer(lnet_nid_t nid);
static inline void static inline void
lnet_peer_set_alive(lnet_peer_t *lp) lnet_peer_set_alive(lnet_peer_t *lp)
{ {
lp->lp_last_alive = lp->lp_last_query = get_seconds(); lp->lp_last_alive = lp->lp_last_query = jiffies;
if (!lp->lp_alive) if (!lp->lp_alive)
lnet_notify_locked(lp, 0, 1, lp->lp_last_alive); lnet_notify_locked(lp, 0, 1, lp->lp_last_alive);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment