소스 검색

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>
Jens Axboe 10 년 전
부모
커밋
39fc8830eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/block/sx8.c

+ 1 - 1
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;
 	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));
 	memset(st, 0, sizeof(*st));
 	st->type	= CARM_MSG_MISC;
 	st->type	= CARM_MSG_MISC;