]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: use scsi_host_busy_iter() to wait for outstanding commands
authorHannes Reinecke <hare@suse.de>
Fri, 28 Feb 2020 07:53:16 +0000 (08:53 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 29 Feb 2020 01:54:52 +0000 (20:54 -0500)
commita6d8666ccd7c43129f8669180cbecb8d3e3e0109
tree4017b68a228309193c8944e6ee86b3c7109b8e4d
parent2a67eb539640e3d2b8cf45037d7a426987687c16
scsi: aacraid: use scsi_host_busy_iter() to wait for outstanding commands

Instead of traversing the list of possible commands by hands we should be
using scsi_host_busy_iter() to figure out if there are outstanding
commands.

Link: https://lore.kernel.org/r/20200228075318.91255-12-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/comminit.c