diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-10 16:58:27 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-12-04 20:32:53 -0500 |
| commit | 07ffd4ce80b9a452d8c8eb154924e19499302d00 (patch) | |
| tree | accc9c2cca61f6f9b816a63d9b0e629a5b917add /tools/perf/scripts/python/bin | |
| parent | bc8f91665b3f2fd94b80217e433dc90383e75ae4 (diff) | |
scsi: 3w-9xxx: rework lock timeouts
The TW_IOCTL_GET_LOCK ioctl uses do_gettimeofday() to check whether a
lock has expired. This can misbehave due to a concurrent settimeofday()
call, as it is based on 'real' time, and it will overflow in y2038 on
32-bit architectures, producing unexpected results when used across the
overflow time.
This changes it to using monotonic time, using ktime_get() to simplify
the code.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Adam Radford <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions