]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: scsi_debug: IMMED related delay adjustments
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 10 Apr 2018 17:00:36 +0000 (13:00 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 02:58:49 +0000 (22:58 -0400)
commit4f2c8bf6bdff306e8f918fa4bacf636c6b9ef760
tree8e1b14d2246f6a8acd6875a69764410384ffeae9
parentaf17092810a887178195276255b7b31f8fbe7dbe
scsi: scsi_debug: IMMED related delay adjustments

A patch titled: "[PATCH v2] scsi_debug: implement IMMED bit" introduced
long delays to the Start stop unit (SSU) and Synchronize cache (SC)
commands when the IMMED bit is clear.  This patch makes those delays
more realistic. It causes SSU to only delay when the start stop state is
changed; SC only delays when there's been a write since the previous
SC. It also reduced the SC delay from 1 second to 50 milliseconds.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reported-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c