scsi: fnic: Zero io_cmpl_skip on fw reset completion
authorSatish Kharat <satishkh@cisco.com>
Tue, 27 Jun 2017 00:46:23 +0000 (17:46 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 Jun 2017 01:40:59 +0000 (21:40 -0400)
commit1cdf8bc18f1ee43a39e543506fff8d5db3020ae1
treef735dbca1b20fb5941231e1ba9127bc719e4c2d8
parent3655a286ca5c244612f586cbb034cab433a20a1a
scsi: fnic: Zero io_cmpl_skip on fw reset completion

io_cmpl_skip keep track of number of completions to skip when stats are
reset. If a fw_reset happens immediately after stats reset it could put
it out of sync so need to reset io_cmpl_skip when fw reset is completed.

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_scsi.c