Skip to content

Commit bcde99d

Browse files
Chandrakanth Patilroot
authored andcommitted
scsi: mpi3mr: Fix pending I/O counter
JIRA: https://issues.redhat.com/browse/RHEL-80698 Commit 199510e ("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: 199510e ("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> (cherry picked from commit cdd4452) Signed-off-by: Chandrakanth Patil <chanpati@redhat.com>
1 parent 809082c commit bcde99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpi3mr/mpi3mr_fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ int mpi3mr_process_op_reply_q(struct mpi3mr_ioc *mrioc,
565565
WRITE_ONCE(op_req_q->ci, le16_to_cpu(reply_desc->request_queue_ci));
566566
mpi3mr_process_op_reply_desc(mrioc, reply_desc, &reply_dma,
567567
reply_qidx);
568-
atomic_dec(&op_reply_q->pend_ios);
568+
569569
if (reply_dma)
570570
mpi3mr_repost_reply_buf(mrioc, reply_dma);
571571
num_op_reply++;

0 commit comments

Comments
 (0)