aboutsummaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorJens Axboe2015-12-23 08:42:59 -0700
committerJens Axboe2015-12-23 08:42:59 -0700
commit39fc8830eb96a559be8554b8df1e0c31f375feaf (patch)
treeeaf1b21c6d87eb6abe6e8395facd33a81389837c /drivers/block
parent8182503df1baa077d1504cd192753b23530eb03c (diff)
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>
Diffstat (limited to 'drivers/block')
-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;