From nobody Tue Sep 03 10:27:22 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 4WyhdQ2swlz5MkZL; Tue, 03 Sep 2024 10:27:22 +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 4WyhdQ1dQ7z4t5D; Tue, 3 Sep 2024 10:27:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359242; 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=+DpiEWPEJCWGTb97kqj00S0EPHi6+Ak++p18poskGzg=; b=FSaH/lHZqpNBpfVxCP4VJzY85wHHdzR/1YyVgfQN3ofz1PccsKtGcHLY9qi2Yec05nFUCR bj/cAU7mxtMi1MuY1aejvtmCixKkHnpfIoRAE8n+louw2llsVHSe96wF1vPsDtaZSnAZBW JBbt4oPhEIb66zD2V/yAAThwlzjGUPCMcbl3///qwC0c5HWcQognEqCHS/Dj9CVdowE30w wqzFoS7LHJGgURgiOVPSk+pfmBO8gl3XHA8um4K6MFdQSldPtwdzD8dlGMCcS51ti2vRLs X5InZUqeN82mu0DfvMACH54pSb5P+cBj4Qq4cdZ3Sdy6i2qvnpl86D8BtG1RlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359242; a=rsa-sha256; cv=none; b=p2D+x279jjzqEmstXwwr29rtwBTc3VAB0XFNnyc3+xiHjIRsxONf4UTMnvsfWD6xVm2Fex VXi4LoqYMklSOhtJpshD8xDDktFb3Qt3hFtJitnIXNaptTfvRHdXtTZFM2R17YdcyacThf kAZH5Eucz59xOzWb/we66ncXDvDG3wslbzaFlrUy52rkneUQckTq+DVHrelLUCY26bVyLt QmlWK4JHXJtIqQ+fn7VLp389levCoK1Lq2/tRVY5Ctkko55MNTZZu+pZH3QEs0KFNYhb8p HuWx5bfcuDDUZcxgQ3wpg+uhQFzGxBm5d0MQgBu4C7ROFVmuMbxT+bUzuLbd3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359242; 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=+DpiEWPEJCWGTb97kqj00S0EPHi6+Ak++p18poskGzg=; b=xc1GxxlIniwkOM8icYprirhNBeC1mjS31caDk+UIi1mpjXrZYtfvCos8GJfc4cm4pkZjSt r5tIcHd2Lb7VGsRaG9fdVffJaGNgCuE0wzFY6ryzIe7SDUsqUOTvI0t3vzpJ66VxWZ9m74 bKG/8yk6sxOiwwxPuJKcJO9YaOW3QaRPJRBV0VSJW6I5y9aCNPisZr4rA6fjn/6iB9BgQZ 4aJZCcgkHTwmW+pJtFtcXlRfJ9ThuXnY8cEbWpUPbCbBsCm1ATekHhweTIselg8vSAfUHE WZUDneOTi3W++aToUICvyqhine0EMzXM2Mg/Vz2QRaQj1lYW9xsaeUELBfLtvQ== 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 4WyhdQ1DKRzcFg; Tue, 3 Sep 2024 10:27:22 +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 483ARMca010436; Tue, 3 Sep 2024 10:27:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARMCN010433; Tue, 3 Sep 2024 10:27:22 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:22 GMT Message-Id: <202409031027.483ARMCN010433@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 701308ef404f - main - 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/main X-Git-Reftype: branch X-Git-Commit: 701308ef404f552034f8c3e3e912b41bfef28ee6 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=701308ef404f552034f8c3e3e912b41bfef28ee6 commit 701308ef404f552034f8c3e3e912b41bfef28ee6 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:31 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:31 +0000 mfi(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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 2885bd695f50..328118ef9596 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);