]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: mpi3mr: Avoid reply queue full condition
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Wed, 29 Jan 2025 10:08:47 +0000 (15:38 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 4 Feb 2025 02:46:40 +0000 (21:46 -0500)
commitf08b24d82749117ce779cc66689e8594341130d3
tree331d38b036545b38c610d4b282033b7dc9700b46
parent2014c95afecee3e76ca4a56956a936e23283f05b
scsi: mpi3mr: Avoid reply queue full condition

To avoid reply queue full condition, update the driver to check IOCFacts
capabilities for qfull.

Update the operational reply queue's Consumer Index after processing 100
replies. If pending I/Os on a reply queue exceeds a threshold
(reply_queue_depth - 200), then return I/O back to OS to retry.

Also increase default admin reply queue size to 2K.

Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20250129100850.25430-2-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr.h
drivers/scsi/mpi3mr/mpi3mr_app.c
drivers/scsi/mpi3mr/mpi3mr_fw.c