From nobody Wed Apr 06 16:27:27 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 788821A91C29; Wed, 6 Apr 2022 16:27:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYVKX2Ldpz4d2J; Wed, 6 Apr 2022 16:27:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649262448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TZmx3VvDx5LirOF3o2rR7nSI1AWE3BQwnpTisZxHLAI=; b=bHboTn3eKXbwwouPmW+CV6jp89DyjqldCHCJa1Wq38gj68EKxDKpmlXnF+JPjgaT+E5s8Z 4UGIiTwTNENBZIAQbBvLKHpq5X0aEAjWCON9PsxyhmFUuy9ZPnsjMxt8nkVySP9+Pntv9z 7roM3AGWsP9xqpdMTXT82uR4Ctg/BQlln584DpUJJdGEXmt90bDsMeEnO/uFIIB6lEh/mc V3q7uEzXzci0IpZaxKv2eChBGFmKUMBawJElsNKZLXP+fzcODe4mB309WNyD2FAZtjEWJI r76zQF/Am/zDlLKvO4ONC6gBl54U6oV3F5cLr/nsiSmSW8BzLckSGyDNlOTgMw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0A1FC1E652; Wed, 6 Apr 2022 16:27:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 236GRRIQ014832; Wed, 6 Apr 2022 16:27:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236GRRWf014831; Wed, 6 Apr 2022 16:27:27 GMT (envelope-from git) Date: Wed, 6 Apr 2022 16:27:27 GMT Message-Id: <202204061627.236GRRWf014831@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 2ebe51859723 - stable/13 - mrsas: remove additional MPT command allocation for R1 FP command List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2ebe51859723fd3cb4cf02dc560441fc0ec50dc1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649262448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TZmx3VvDx5LirOF3o2rR7nSI1AWE3BQwnpTisZxHLAI=; b=HiVMF0N+ZzIiIcq1Tbk8V+71v1IORJFDmmNT9E6FVfhE35pniZJOaTujTKjAd2CM9P1Dv+ IBCN1u+TIB+sQO8ni6Hyl3isArpPWh3xdeMcntGDg9rVOuTEMnQEAaY/3sC2PJbzh0sXdQ /xK88Y4Jd3cepdr9P6ozcjycDLMMljb1p6zz4eofwEypQQ8gvY2TgVXQV7ZLqnKD8eA/vQ G5m1fi9tmbqah+JBhHxu7zgPyIuCaPPthDHDVa/5uU1XIGLSKREZOyyqlySFNKnXcED19N PzZnErLajzk3O73hGj7vgLijreBX664hI9Gh9RcSaU1USBdQWHpeDvtcjCvskA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649262448; a=rsa-sha256; cv=none; b=fWN7CHlxWe4UTucNqyyibgHEe15WLcKTOuBwBRS8ZedvHyZt+qwBc6odn9JWTAagCgMFLF 5nPTqlWKqhlGgz+yC68N7b/R+6YkccdsllzDc5iidDXbx5QGYOgXKrDIjDGNvE95vf3rBk WbHzwPwnodohX9Ke+lCEkGK7ImFm35zxUdVw5faWb1Ns/GG7PAppIYlxzI7FN8cvTQaOTZ jnRBopQEpg4xblCParqlkSCtzKNka00Ree1wVLIMZy44wovkmcsOdqpxQQDhZnMlg/oC08 Gg3P1YQtcWcFplAVni9iLSJhUiPAL3Scl+mPmG6y3Wi4TRfhuQF1WI493H3qJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2ebe51859723fd3cb4cf02dc560441fc0ec50dc1 commit 2ebe51859723fd3cb4cf02dc560441fc0ec50dc1 Author: Chandrakanth Patil AuthorDate: 2022-01-21 12:11:49 +0000 Commit: Warner Losh 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);