From nobody Tue Apr 05 14:38:23 2022 X-Original-To: dev-commits-src-main@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 9940C1A8D886; Tue, 5 Apr 2022 14:38:23 +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 4KXqy73m1Lz4ZPf; Tue, 5 Apr 2022 14:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649169503; 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=JTOtGKO/CXQQWB+54Q/KyoCh45ReDQ9gC+ESFoHwujQ=; b=XnaliCFgSMSSbnw7toMWi2qC2iiA1GmMDM2UYMfyiWitV4LrEuq+yubFNF3VYIQ06PRVts bRm4kV4j3ZGl5lsb/S82eQYC+50QtCj0S5n3E8qsVRQZEKzpsTJ+0MyYjXLQHmvDedtSkO oOewo8wIjWqaRYCRkmTPVDH2w6OdyASY114HBtGADL74LKGBnrdZKRJIIfWz04pKZbV/Sk n52Rj1HeU7CTE64e56QG1zEI2hYKjAGMQ9UEaqo688QEJZXguPjgXO8SBCgx04TogJBQqp b5dLmtBOzwlqWiJOZiA2iumVJkE2kKEUekYzkK6zXyMy+DmgoQVhpzV+oI/wWg== 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 626C64AC; Tue, 5 Apr 2022 14:38:23 +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 235EcN0p019443; Tue, 5 Apr 2022 14:38:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 235EcNAQ019442; Tue, 5 Apr 2022 14:38:23 GMT (envelope-from git) Date: Tue, 5 Apr 2022 14:38:23 GMT Message-Id: <202204051438.235EcNAQ019442@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 241bb95552a3 - main - mrsas: remove additional MPT command allocation for R1 FP command List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 241bb95552a39d440519162b544c776adcb7cf57 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649169503; 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=JTOtGKO/CXQQWB+54Q/KyoCh45ReDQ9gC+ESFoHwujQ=; b=OMQ3tMunZ70Pl+k71kK7GOYyEPMJ/7I8z+tk599YEAjxr83bkWq0XiIo9l56/uPVHDwIFf Z3IaMMkSpRdbPKxRCQQmszFw1GYIkrGRm71gRdpw+R2RBdzJzpaNXE0C1ZZcWVwSCz7ahm Mt3aRcNdLayGg8QTx2mYyFkl0B7bvo3Y2KIEUmg+qwwwy7Foc3ZpTnjicx7lbOpn80pJzP 2DX1hJzyKSD9tvBrafJMH6Z2cbQbtAea8ueJ2/QKrryCQb3nO2lmCwurEz1SXhNC894kgx tc6tQaOZzBkyKL7Sz7/oaxl2s0mw/2p/0KAnIwNQFicf+kQEA8I7qnj/9ngB+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649169503; a=rsa-sha256; cv=none; b=OR8K8A+U91IuRyagJXKQt5V5qdaXsYuim4Sx8hWuSiL+lBfQICdTzuy6kjWFceEDtsTX5x psW34M8zVrrR4GYStIBKaU3d1I6kmV5o7X8B+eq1XDYKf+/MMXfrucqmm1ZFX/IxtYTdbJ c0ilL8ctEbNyXqqQrKK+peFn17cy6HC+c0NDLQVIMTlNUQDa1aAhgkzVtm92fwhDXlr6A+ t+lAr4hrRyfpLfD9XVOxOnjvsZBSTYvAB6LbfTz6Ag9whayH4Ls4SPIFY13hXQcFDYSiRg Eijfs74Z/VcxkgYfig9E5ESESdfjdmQTrieXDVRKV/g8266mQbHa99jBH85y/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=241bb95552a39d440519162b544c776adcb7cf57 commit 241bb95552a39d440519162b544c776adcb7cf57 Author: Chandrakanth Patil AuthorDate: 2022-01-21 12:11:49 +0000 Commit: Warner Losh CommitDate: 2022-04-05 14:38:14 +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 --- 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 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);