summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic/fnic_scsi.c
diff options
context:
space:
mode:
authorSatish Kharat <satishkh@cisco.com>2017-06-27 02:46:23 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-28 03:40:59 +0200
commit1cdf8bc18f1ee43a39e543506fff8d5db3020ae1 (patch)
treef735dbca1b20fb5941231e1ba9127bc719e4c2d8 /drivers/scsi/fnic/fnic_scsi.c
parentscsi: bnx2fc: Update version number to 2.11.8. (diff)
downloadlinux-1cdf8bc18f1ee43a39e543506fff8d5db3020ae1.tar.xz
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/scsi/fnic/fnic_scsi.c')
-rw-r--r--drivers/scsi/fnic/fnic_scsi.c1
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);