]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: mpi3mr: Fix pending I/O counter
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Fri, 11 Apr 2025 11:14:18 +0000 (16:44 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Apr 2025 01:44:58 +0000 (21:44 -0400)
commitcdd445258db9919e9dde497a6d5c3477ea7faf4d
tree937d5765b7d300c5ccb6ef832bf6dc1f31d76379
parent4c324085062919d4e21c69e5e78456dcec0052fe
scsi: mpi3mr: Fix pending I/O counter

Commit 199510e33dea ("scsi: mpi3mr: Update consumer index of reply
queues after every 100 replies") introduced a regression with the
per-reply queue pending I/O counter which was erroneously decremented,
leading to the counter going negative.

Drop the incorrect atomic decrement for the pending I/O counter.

Fixes: 199510e33dea ("scsi: mpi3mr: Update consumer index of reply queues after every 100 replies")
Cc: stable@vger.kernel.org
Co-developed-by: Sathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: Sathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20250411111419.135485-2-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c