From nobody Mon Sep 30 05:08:31 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 4XH8H44PLXz5Xljm; Mon, 30 Sep 2024 05:08:32 +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 4XH8H40yz5z4XWV; Mon, 30 Sep 2024 05:08:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672912; 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=y8lUxYlZKmLxSnKYxl9zmszxaknFZAU2B7wH0BAnjfk=; b=DX+XtApZGB0xoWEd5xG2CXxDRulC5zr1djZlgLB52ZvagznemVT3vG1nl0m9CqxbLadPXL MT/cErBbVgtRIEYr8m/Qx3xFtrIYaaTZ1MoCIca4djybi7mhvGDTAowKCtAMZNYQQYJu3Y f4ub1dbnaK21fJkjPDQtJMjaFb00riSzMUTWYU1adr3QFI/X6g/1BERjgCtlRTYnYxq8BV r+to+C2y4D97Tlf0CE0C9b11wsZ+ohseJHQzf48/HJoDPFkXJsOFil+WKcR+nOH8iNBDzM y89DeoG3pHN7dOD9r5hE8CPEcHcizu7rgyj524ZjBHItvtUxtt3th2FLPqd1jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672912; 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=y8lUxYlZKmLxSnKYxl9zmszxaknFZAU2B7wH0BAnjfk=; b=i+zAuZk86nR0Th8jKJquGZ5nyxHynvSzqN46JL9qd3h+BlsujltwAwotLV8xFY3Rs5kQwX EWFrtxbTLQ1tNsxdikFejtwfnOkbLCvboW1bzNs51p5b9p2ngkmWA1+E/6gyOu0yOOnL8t j6sCOILp0tT6deDs3qseeqSIPUt71mTkvPkNyNU26/pWEwQES8j5YUPnUGiPcK8gN/JJMY MvBGdn5HfnL3dQde2SUKVIz29OUvekIwl9wXFataKdyNoHG5yUacE6sOKKP2UJVVX7JLSc XJl/5XSXXknS+iJtAXKUJneGr3zWVQuFai7bEHix/3jxu3Tq9H8Z4fvmasMDdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672912; a=rsa-sha256; cv=none; b=uHG6MonGwMk0xmGfaz2erP9+IOCYpFOXt6kpfbBXmvmnAaifBaSzDePtFbnR1ECkwAf0tF 0z/d6uGassDumCtrMJwx/RIJBx/HB87QzSixblasz7RITVHeVDeMd0RzyxuTAiCs7qQMZQ 2sEk0AlL6XCIgwsq3JC7AsGJYtlpEU9GRLoma0x/wdNaSy3xaSorPnvxIEZSqGw7u+kafp R/VerAxVJxe6JFzxsHEG9VMUPmeomTLIgnSsIp/uG6GwT5EkX2cgU3hPavTvUVjCzSLqgy 4tvCwASfHyO/u632AUlT5RPOhONrPaRkZEpyCVkGXWxGiRxzK8p0ze+i6KLkBQ== 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 4XH8H40XjFzg88; Mon, 30 Sep 2024 05:08:32 +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 48U58VsJ025412; Mon, 30 Sep 2024 05:08:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58Vqk025409; Mon, 30 Sep 2024 05:08:31 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:31 GMT Message-Id: <202409300508.48U58Vqk025409@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: 909623bc1a28 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 909623bc1a28966ca11bb23dc863c579bbb5fff4 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=909623bc1a28966ca11bb23dc863c579bbb5fff4 commit 909623bc1a28966ca11bb23dc863c579bbb5fff4 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:31 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:37 +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) (cherry picked from commit 4fee8d3e92c69d5865a7ef1a9102399b6fdeb9bc) --- 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 81bf8ae450bb..4a7bee6e1bbc 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -3635,11 +3635,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);