提交 39fc8830 编写于 作者: J Jens Axboe

sx8: use real time for the command seconds

Commit 8182503d 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: NArnd Bergmann <arnd@arndb.de>
Fixes: 8182503d ("block: sx8.c: Replace timeval with ktime_t")
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 8182503d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册