scsi: fnic: use fnic_lock to guard fnic->state_flags
authorSatish Kharat <satishkh@cisco.com>
Tue, 15 Jan 2019 01:09:23 +0000 (17:09 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jan 2019 02:18:34 +0000 (21:18 -0500)
commit68f03bd1eec6b064644e4b20dbc4a0f54a27b6b1
treeafa56b2199e6cf54f4adc306298b0b4826d03e9e
parent5271d1cad8187b7c33685201a3799fc3385007e9
scsi: fnic: use fnic_lock to guard fnic->state_flags

Need to use fnic_lock as well as host lock in that order to set state
flags.

[mkp: typos]
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_scsi.c