summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-12-23 18:42:59 +0300
committerJens Axboe <axboe@fb.com>2015-12-23 18:42:59 +0300
commit39fc8830eb96a559be8554b8df1e0c31f375feaf (patch)
treeeaf1b21c6d87eb6abe6e8395facd33a81389837c
parent8182503df1baa077d1504cd192753b23530eb03c (diff)
downloadlinux-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.c2
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;