]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: use scsi_host_(block,unblock) to block I/O
authorHannes Reinecke <hare@suse.de>
Fri, 28 Feb 2020 07:53:14 +0000 (08:53 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 29 Feb 2020 01:54:51 +0000 (20:54 -0500)
commitc430a51ded0a5df82f89b01d70d42bc6775270c3
tree2f08f18b1ce2c6e38feff0674b3a5c99fa34643a
parentdd6501160bc1ad37a4e5ec9792084f6d2c55520d
scsi: aacraid: use scsi_host_(block,unblock) to block I/O

Use scsi_host_block() and scsi_host_unblock() instead of
scsi_block_requests()/scsi_unblock_requests() to block and unblock I/O.
This has the advantage that the block layer will stop sending I/O to the
adapter instead of having the SCSI midlayer requeueing I/O internally.

Link: https://lore.kernel.org/r/20200228075318.91255-10-hare@suse.de
Reviewed-by: Christoph Hellwig <hch@lst.de>
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
drivers/scsi/aacraid/linit.c