From 9c255254f15b0ef861990f425462ef093804a57a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 04:45:18 +0000 Subject: [PATCH] Merge r7485 from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7734 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index ec3b0f0a0..ea5cf19ba 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -15707,7 +15707,7 @@ static void __scst_update_latency_stats(struct scst_cmd *cmd, int64_t deltac; #endif - if (stat && stat->last_update) { + if (stat && ktime_to_ns(stat->last_update) != 0) { delta = ktime_to_ns(ktime_sub(now, stat->last_update)); if (delta < 0 || delta > NSEC_PER_SEC) { printk_once(KERN_INFO "%d: ignoring large time delta %lld\n",