From 39fc8830eb96a559be8554b8df1e0c31f375feaf Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 23 Dec 2015 08:42:59 -0700 Subject: [PATCH] sx8: use real time for the command seconds Commit 8182503df1ba used monotonic time, but if the adapter is using the seconds for logging entries, then we'll get duplicate entries if the system is rebooted. Use real time instead. Reported-by: Arnd Bergmann Fixes: 8182503df1ba ("block: sx8.c: Replace timeval with ktime_t") Signed-off-by: Jens Axboe --- drivers/block/sx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index baadb777e035..ba4bfe933276 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c @@ -673,7 +673,7 @@ static unsigned int carm_fill_sync_time(struct carm_host *host, { struct carm_msg_sync_time *st = mem; - time64_t tv = ktime_get_seconds(); + time64_t tv = ktime_get_real_seconds(); memset(st, 0, sizeof(*st)); st->type = CARM_MSG_MISC; -- 2.20.1