diff options
author | Satish Kharat <satishkh@cisco.com> | 2017-06-26 17:46:23 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-27 21:40:59 -0400 |
commit | 1cdf8bc18f1ee43a39e543506fff8d5db3020ae1 (patch) | |
tree | f735dbca1b20fb5941231e1ba9127bc719e4c2d8 /drivers | |
parent | 3655a286ca5c244612f586cbb034cab433a20a1a (diff) | |
download | linux-1cdf8bc18f1ee43a39e543506fff8d5db3020ae1.tar.gz linux-1cdf8bc18f1ee43a39e543506fff8d5db3020ae1.tar.bz2 linux-1cdf8bc18f1ee43a39e543506fff8d5db3020ae1.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/fnic/fnic_scsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c index d048f3b5006f..beea14c40a95 100644 --- a/drivers/scsi/fnic/fnic_scsi.c +++ b/drivers/scsi/fnic/fnic_scsi.c @@ -633,6 +633,7 @@ static int fnic_fcpio_fw_reset_cmpl_handler(struct fnic *fnic, atomic64_set(&fnic->fnic_stats.fw_stats.active_fw_reqs, 0); atomic64_set(&fnic->fnic_stats.io_stats.active_ios, 0); + atomic64_set(&fnic->io_cmpl_skip, 0); spin_lock_irqsave(&fnic->fnic_lock, flags); |