scsi: ibmvscsi: redo driver work thread to use enum action states
authorTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Fri, 3 May 2019 00:50:57 +0000 (19:50 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:22 +0000 (19:46 -0400)
commit6e40de8b6b3cfa7288bb4a1fee2c7173f53b7345
tree6f10eb57dfa2a5f0e0d46a1b13bd3ebac7a6d203
parent2e22520475037f97b5a3234591183105ecf9845b
scsi: ibmvscsi: redo driver work thread to use enum action states

The current implemenation relies on two flags in the driver's private host
structure to signal the need for a host reset or to reenable the CRQ after
a LPAR migration. This patch does away with those flags and introduces a
single action flag and defined enums for the supported kthread work
actions. Lastly, the if/else logic is replaced with a switch statement.

Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvscsi.c
drivers/scsi/ibmvscsi/ibmvscsi.h