aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandrakanth Patil <chandrakanth.patil@broadcom.com>2022-01-21 12:11:49 +0000
committerWarner Losh <imp@FreeBSD.org>2022-04-05 14:38:14 +0000
commit241bb95552a39d440519162b544c776adcb7cf57 (patch)
treef41383354645fd164043d9f24df953dfcbaf07ed
parentccdfd621d070c11964984d81f66c2bd38f8072f4 (diff)
downloadsrc-241bb95552a39d440519162b544c776adcb7cf57.tar.gz
src-241bb95552a39d440519162b544c776adcb7cf57.zip
mrsas: remove additional MPT command allocation for R1 FP command
There is an additional MPT command allocation for R1 fp command which will lead to MPT command unavailablity in case of rigorous R1 FP IOs. Remove additional MPT command allocation for R1 FP. Reviewed by: imp PR: 261377
-rw-r--r--sys/dev/mrsas/mrsas_cam.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/mrsas/mrsas_cam.c b/sys/dev/mrsas/mrsas_cam.c
index 2fc5049c7a0f..32839a9cb8a4 100644
--- a/sys/dev/mrsas/mrsas_cam.c
+++ b/sys/dev/mrsas/mrsas_cam.c
@@ -1075,7 +1075,6 @@ mrsas_setup_io(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd,
if (fp_possible &&
(io_info.r1_alt_dev_handle != MR_DEVHANDLE_INVALID) &&
(raid->level == 1) && !io_info.isRead) {
- r1_cmd = mrsas_get_mpt_cmd(sc);
if (mrsas_atomic_inc_return(&sc->fw_outstanding) > sc->max_scsi_cmds) {
fp_possible = FALSE;
mrsas_atomic_dec(&sc->fw_outstanding);