Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2022 16:27:27 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2ebe51859723 - stable/13 - mrsas: remove additional MPT command allocation for R1 FP command
Message-ID:  <202204061627.236GRRWf014831@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ebe51859723fd3cb4cf02dc560441fc0ec50dc1

commit 2ebe51859723fd3cb4cf02dc560441fc0ec50dc1
Author:     Chandrakanth Patil <chandrakanth.patil@broadcom.com>
AuthorDate: 2022-01-21 12:11:49 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-06 16:27:25 +0000

    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
    
    (cherry picked from commit 241bb95552a39d440519162b544c776adcb7cf57)
---
 sys/dev/mrsas/mrsas_cam.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/mrsas/mrsas_cam.c b/sys/dev/mrsas/mrsas_cam.c
index 85dacdb9f306..8841908051b8 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); 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204061627.236GRRWf014831>