]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_transport_fc: use 64-bit timestamps consistently
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 15:29:51 +0000 (17:29 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 15:58:07 +0000 (11:58 -0400)
commit70b9ffb18a8f192051b323ca8f24cf0c16f6614f
treee9f4920750567e7feb2c97cee671f89c58f7c078
parenta90ac66f9706c4179cbfe09d5ab515bfd094c7f1
scsi: scsi_transport_fc: use 64-bit timestamps consistently

The get_seconds() helper returns an 'unsigned long' value, which can
overflow on 32-bit architectures. Since the interface we pass it into
already uses a 64-bit type, we can just use ktime_get_real_seconds()
instead.

While we generally prefer local timestamps in CLOCK_MONOTONIC format
(ktime_get_seconds), this keeps using the CLOCK_REALTIME version in order
to maintain compatibility with existing code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c