sx8: use real time for the command seconds
Commit8182503df1
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:8182503df1
("block: sx8.c: Replace timeval with ktime_t") Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Родитель
8182503df1
Коммит
39fc8830eb
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче