John Garry 6918141d81 scsi: scsi_debug: Fix hrtimer support for ndelay
Since commit 771f712ba5b0 ("scsi: scsi_debug: Fix cmd duration
calculation"), ns_from_boot value is only evaluated in schedule_resp()
for polled requests.

However, ns_from_boot is also required for hrtimer support for when
ndelay is less than INCLUSIVE_TIMING_MAX_NS, so fix up the logic to
decide when to evaluate ns_from_boot.

Fixes: 771f712ba5b0 ("scsi: scsi_debug: Fix cmd duration calculation")
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241202130045.2335194-1-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-12-04 13:22:59 -05:00
..
2024-11-25 18:50:55 -08:00
2024-11-20 21:39:51 -05:00
2024-09-19 11:28:51 +02:00
2024-03-10 18:15:48 -04:00
2024-05-21 10:09:28 -07:00
2024-03-15 17:53:48 -07:00
2024-08-12 22:05:50 -04:00
2024-08-12 22:05:50 -04:00
2024-09-29 09:22:34 -07:00
2024-03-16 16:31:12 -07:00
2024-11-18 16:50:08 -08:00
2024-06-20 15:19:17 -06:00
2024-10-02 17:23:23 -04:00
2024-11-25 18:50:55 -08:00