]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: use scsi_host_complete_all_commands() to terminate outstanding commands
authorHannes Reinecke <hare@suse.de>
Fri, 28 Feb 2020 07:53:10 +0000 (08:53 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 29 Feb 2020 01:54:49 +0000 (20:54 -0500)
commit67e83cfa83caf5bd7087d41a7e7a0523d4123597
treef7bcc6db509ff960d4df51d6bf7afcea5515962a
parentdba017bc80d88696d3fd7bd85a22cfe30771f030
scsi: aacraid: use scsi_host_complete_all_commands() to terminate outstanding commands

Use scsi_host_complete_all_commands() to terminate all outstanding commands
and change the command result for terminated commands to the more common
'DID_RESET' instead of 'QUEUE_FULL'.

Link: https://lore.kernel.org/r/20200228075318.91255-6-hare@suse.de
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Balsundar P <balsundar.p@microchip.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/commsup.c