Whamcloud - gitweb
LU-9019 o2iblnd: use 64-bit ibn_incarnation computation
[fs/lustre-release.git] / lnet / klnds / o2iblnd / o2iblnd.c
index cd136b3..0124636 100644 (file)
@@ -3179,7 +3179,6 @@ kiblnd_startup (lnet_ni_t *ni)
         char                     *ifname;
         kib_dev_t                *ibdev = NULL;
         kib_net_t                *net;
-        struct timeval            tv;
         unsigned long             flags;
         int                       rc;
        int                       newdev;
@@ -3198,8 +3197,7 @@ kiblnd_startup (lnet_ni_t *ni)
         if (net == NULL)
                 goto failed;
 
-       do_gettimeofday(&tv);
-       net->ibn_incarnation = (((__u64)tv.tv_sec) * 1000000) + tv.tv_usec;
+       net->ibn_incarnation = ktime_get_real_ns() / NSEC_PER_USEC;
 
        kiblnd_tunables_setup(ni);