linux/drivers/scsi/mpi3mr
Ranjan Kumar 1909540037 scsi: mpi3mr: Fix pending I/O counter
commit cdd445258d upstream.

Commit 199510e33d ("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: 199510e33d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-05-02 07:59:06 +02:00
..
mpi scsi: mpi3mr: Update MPI Headers to revision 34 2024-09-12 21:10:13 -04:00
Kconfig scsi: mpi3mr: Select CONFIG_SCSI_SAS_ATTRS 2022-10-22 03:14:51 +00:00
Makefile scsi: mpi3mr: Refer CONFIG_SCSI_MPI3MR in Makefile 2022-12-14 03:01:38 +00:00
mpi3mr.h scsi: replace blk_mq_pci_map_queues with blk_mq_map_hw_queues 2025-04-25 10:47:38 +02:00
mpi3mr_app.c scsi: mpi3mr: Avoid reply queue full condition 2025-04-20 10:15:16 +02:00
mpi3mr_debug.h scsi: mpi3mr: Update copyright year 2023-03-16 23:54:29 -04:00
mpi3mr_fw.c scsi: mpi3mr: Fix pending I/O counter 2025-05-02 07:59:06 +02:00
mpi3mr_os.c scsi: replace blk_mq_pci_map_queues with blk_mq_map_hw_queues 2025-04-25 10:47:38 +02:00
mpi3mr_transport.c scsi: mpi3mr: Validate SAS port assignments 2024-10-15 22:17:17 -04:00