scsi: mpt3sas: simplify _wait_for_commands_to_complete()
authorHannes Reinecke <hare@suse.de>
Thu, 4 Jan 2018 12:57:10 +0000 (04:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:03 +0000 (23:25 -0500)
commit272e253c7bcabfeef5f4d0aaed94a413e13e520f
tree22aad5ff9178b8aeec2306db371dae0bc969d4da
parent6da999fe5a9285c2a78f3cf1e768abcd48d7607e
scsi: mpt3sas: simplify _wait_for_commands_to_complete()

Use 'host_busy' instead of counting outstanding commands by hand.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c