diff options
author | Jens Axboe <axboe@fb.com> | 2015-12-23 18:42:59 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-23 18:42:59 +0300 |
commit | 39fc8830eb96a559be8554b8df1e0c31f375feaf (patch) | |
tree | eaf1b21c6d87eb6abe6e8395facd33a81389837c | |
parent | 8182503df1baa077d1504cd192753b23530eb03c (diff) | |
download | linux-39fc8830eb96a559be8554b8df1e0c31f375feaf.tar.xz |
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 <arnd@arndb.de>
Fixes: 8182503df1ba ("block: sx8.c: Replace timeval with ktime_t")
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | drivers/block/sx8.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |