]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: simplify task management functions
authorHannes Reinecke <hare@suse.de>
Thu, 4 Jan 2018 12:57:08 +0000 (04:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:02 +0000 (23:25 -0500)
commitbe28082fc46c0df6731ed4c8e4d012470d9757e5
tree44566166c3859df3a77b24d4c04fed40330c216e
parentec616fa0586c1b023448c7cadda41fb017a69a3c
scsi: mpt3sas: simplify task management functions

No functional change. Code optimization.

One can simply check 'target_busy' or 'device_busy' when figuring out if
there are outstanding commands; no need to painstakingly count them by
hand.

[mkp: tweaked patch description]

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_scsih.c