scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags
authorGiridhar Malavali <gmalavali@marvell.com>
Tue, 2 Apr 2019 21:24:22 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:09 +0000 (11:54 +0200)
commit5957f6f5aaa67ced66e4a50264cfdbf6049f7a4b
treec99122c7bcd009a4397e1c8bd918d2fa166f99f6
parentc2c7b6fee389ebf3606f400c30eaa72db6592f41
scsi: qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags

[ Upstream commit 0257eda08e806b82ee1fc90ef73583b6f022845c ]

Driver maintains state machine for processing and completing switch
commands. This patch resets FCF_ASYNC_{SENT|ACTIVE} flag to indicate if the
previous command is active or sent, in order for next GPSC command to
advance the state machine.

[mkp: commit desc typo]

Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_gs.c