From nobody Mon Sep 30 04:45:43 2024 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 4XH7ml6nMfz5Xjvq; Mon, 30 Sep 2024 04:45:43 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XH7ml2Sngz4Flx; Mon, 30 Sep 2024 04:45:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671543; 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=ZbakR542Y5Cy/9+paqeGhk4mxJKrgWlefC5ioSdoU3E=; b=UZFhjAGO19UYdBr+zzqJsP91cCkNZn0ATkxWDZInCKsBitNm3oUpBwxtZwHK7fEQiRpDZm ypdz98mgXQNOQ4HKVEURAQIht0RsH88mEbg/VvDSHd7bAx1hy6V2T0q3wCNp4016SbYZVL +IIz9d//vCxwxcczNMXFbgsUej7JDNpcXfm8689QhzMJHMsFenTf2iKnb5qgwt65X/X004 e663MXkZLLWSHbAAsvYzb+9bnu6irEf7+cyt5t/k+ie6ehkuYu2t5Fbp7OYGoX7CPEUn/J oVXcWicCJn8KcLAW/CKmD4IMoIk8JD4Tjc/pFw0mvRBli/gTnzRiiQ9jgNJGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671543; 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=ZbakR542Y5Cy/9+paqeGhk4mxJKrgWlefC5ioSdoU3E=; b=lZfB6xC04+m4dnpgiQDffAyndu4DLYY7j9jSCKTu1kDTmRFXnyO0TiGdZuf9aRYmBC5hLE zh/qEdhL5dLvum8zttVNFMbEU1lQxACvr4+gIWbl9pn2bsceXpkLNJxubdOtg/Z9vIAEdL L+L/zFozRif/y4kuOaagD6YWon33tcaF0tRB9jxy+j6j3RmnS2DrddpCw79+rl/jYmQZ9/ 9/rIMOJ8tsh1WSNOAye4R3HcZBOzv0fiGq+AGJm5qFbiU9lpZYUdqqBpUNK2OxjBUGeRCb 0NWwATk8x35DzMmZH4ldJ6iJZdaGSM9rj5LwvoBFGgn3YtytDrN8ld+Fw/VQSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671543; a=rsa-sha256; cv=none; b=UGXt1T9gxy94H252YYR3QpgV5Ai3WFplNOvsZL6D/XeK2CsCAksltFM9IZ7PQUb4/4JvXJ +WQW0X8k42rvGBwbq+zKAJPP33NjnzL3ZBzTSN0wBtWmDxeF3ysX0HHhAvsVk+jwhDypT8 7NT4cNSdR9zRmzZtlWf18fcxahvLs4md6Thw4jPKMOFMuIWt4nCZ/WM1L8JCoDq32ayVte pwB2//bLGFPogN69040xpPZEK+UT0GR5E1BPYtCNSxOSXjizYnFuH2z51fbCsG8O3QdFY4 gVWjJ29bTlLD8Gye+YNSYi8oH4XYyUp0TBmv4eu5IMqYLUq9CVsEL6OlrkZsBw== 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 4XH7ml1HwMzfbk; Mon, 30 Sep 2024 04:45:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48U4jh8v087746; Mon, 30 Sep 2024 04:45:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jhim087743; Mon, 30 Sep 2024 04:45:43 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:43 GMT Message-Id: <202409300445.48U4jhim087743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 4fee8d3e92c6 - stable/14 - mfi(4): Stop checking for failures from malloc(M_WAITOK) 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4fee8d3e92c69d5865a7ef1a9102399b6fdeb9bc Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4fee8d3e92c69d5865a7ef1a9102399b6fdeb9bc commit 4fee8d3e92c69d5865a7ef1a9102399b6fdeb9bc Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:31 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:24 +0000 mfi(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 701308ef404f552034f8c3e3e912b41bfef28ee6) --- sys/dev/mfi/mfi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 3a61559d4605..f95ba0341a70 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -3633,11 +3633,8 @@ out: mfi_aen_entry = malloc(sizeof(struct mfi_aen), M_MFIBUF, M_WAITOK); mtx_lock(&sc->mfi_io_lock); - if (mfi_aen_entry != NULL) { - mfi_aen_entry->p = curproc; - TAILQ_INSERT_TAIL(&sc->mfi_aen_pids, mfi_aen_entry, - aen_link); - } + mfi_aen_entry->p = curproc; + TAILQ_INSERT_TAIL(&sc->mfi_aen_pids, mfi_aen_entry, aen_link); error = mfi_aen_register(sc, l_aen.laen_seq_num, l_aen.laen_class_locale);