scsi: fnic: Fix for "Number of Active IOs" in fnicstats becoming negative
authorSatish Kharat <satishkh@cisco.com>
Wed, 1 Mar 2017 00:14:56 +0000 (16:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:41 +0000 (09:17 +0100)
commit3dda4b42a8f971d3d3896f14ca5f7185a29ae067
tree5ec210743def4abccabf89acd36eb4efaa0f4bea
parent86b684fcd6fe24586263e978aba79d136511f0b8
scsi: fnic: Fix for "Number of Active IOs" in fnicstats becoming negative

[ Upstream commit 7ef539c88d7d394410d547c9f082d477093a2a22 ]

Fixing the IO stats update (Active IOs and IO completion) to prevent
"Number of Active IOs" from becoming negative in the fnistats output.

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/fnic/fnic_scsi.c