]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: scsi_debug: skip long delays when ndelay small
authorDouglas Gilbert <dgilbert@interlog.com>
Thu, 12 Jul 2018 17:35:42 +0000 (13:35 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Jul 2018 03:01:16 +0000 (23:01 -0400)
commit75aa3209c945fc711163ff1ecbc031bd13962a9d
tree35f64373c9f0fa0843f7f5cb88d1c33e10edeb77
parent920447f138917d8d5b830b752cff5e5f747f67e8
scsi: scsi_debug: skip long delays when ndelay small

A test program's runtime became impractically long since any non zero
ndelay (e.g. 1 nanosec) caused Start Stop Unit to delay over 8 magnitudes
greater than other commands. This patch skips long delays (on Start Stop
Unit and Synchronize Cache) if ndelay is less than or equal to 10
microsecs.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c