From nobody Tue Sep 03 10:27:40 2024 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 4Wyhdm4XxCz5Mkdm; Tue, 03 Sep 2024 10:27:40 +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 4Wyhdm1v65z4tPs; Tue, 3 Sep 2024 10:27:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359260; 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=XR4urAIyGNEGjlOS4vr2Vrrl5jSANKLiFuCOgvvA0+o=; b=T2WvJjnHbbYdcWqkzM9Cjxc8mNH5GWhcsx/fqPYbxPugR7QN8cv1wIHKzTZEVxFl6zcP2Z wChOZDQsq0WU1+vD/t9Q/TlD7GhtY5hRcyirRrqQCC+O7BPX5dE3CMjp7UQAVi/mhBmE2o XXjD603V8Pyw6CVEyhVKg0GTAD0umncngr4YH7qdoviBmRHBijRJrTq68GvUJiJsujvg7r 5OCR3cfnzlYIOwOFhGFdB8W/C8Ng4oYJYztKZkOkXE/WZ6nnn5qhc/ZOB0I7gioL1Y875Z 07PcsrNk3OU2rhERl4w5ajs50KGHJq7oXnfqyz+VznU1HJELakdoZtbEJG1S2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359260; a=rsa-sha256; cv=none; b=gvMNxzNtmi/sp6Ueq5BrQZRa41+e4R9/4mQdkLwvoxS/xtbzQ1ecKX/HorDyrjqUuDT4Ds oriT5YhKwnzbqLnS1bVqM38z6joOleDluUcCvq+8nbjJV7kWo2QKx3IOfXX4NKRS/LKXAL XKAOjqfKhs66a0YTJxWKKL6jq+r5TcQOuzZyyUPNGDOp+IeiUIJ/TaCfAOpeowKU26+SUv kwZYFbq0Tfe9HFhiD31p9oqGB0D9EvbmPE1ki/8771Y0+f+IU/i+zU1f/Q0GQUnGHon7dZ w8s51zHHe+YBWi5crHdZIg27sfLQijB9Em8+Sr1PFGhzSOH1ydqX0cdtQUgRrw== 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=1725359260; 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=XR4urAIyGNEGjlOS4vr2Vrrl5jSANKLiFuCOgvvA0+o=; b=yK58myp8pJ3hFHN3FKKcQ1w1Sy4XUs9b1d96dZqrrjC3PhEOX07lr6y40tYbB9M7dn0UTf jPJN49rBaK95RHfAlr84RqKLkPw7er6/YueoQLkNdyrItpc3UMEkIqWwjGmF8RvQyzCLKS vt7VWsLw0oapgOerQ6yuFy/dJV7fzET2de67YX7bBSDHqIf8RcAvST6EBi0+9Xg0eWpFq5 RhUEhBblaz4gfvssqO03SxZdbVSKK2EhVHSUiRqJ4lWPp4SkAuvWil6v0yiAucfAeBTeL6 OZ+nbtDdUagi79WTNTF+v2aRBU25q6kXS9Ep/07PN8YZDk1EyFHcy2talr8Fqw== 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 4Wyhdm1N2HzcbH; Tue, 3 Sep 2024 10:27:40 +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 483ARemI011268; Tue, 3 Sep 2024 10:27:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AReH1011265; Tue, 3 Sep 2024 10:27:40 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:40 GMT Message-Id: <202409031027.483AReH1011265@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: af28fc3c191c - main - cas(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK) 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: af28fc3c191cf572f7def767c60fff59d48947df Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=af28fc3c191cf572f7def767c60fff59d48947df commit af28fc3c191cf572f7def767c60fff59d48947df Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:37 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:37 +0000 cas(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45853 --- sys/dev/cas/if_cas.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/cas/if_cas.c b/sys/dev/cas/if_cas.c index 76d1b713e5bb..1f684097bd3a 100644 --- a/sys/dev/cas/if_cas.c +++ b/sys/dev/cas/if_cas.c @@ -205,11 +205,6 @@ cas_attach(struct cas_softc *sc) TASK_INIT(&sc->sc_tx_task, 1, cas_tx_task, ifp); sc->sc_tq = taskqueue_create_fast("cas_taskq", M_WAITOK, taskqueue_thread_enqueue, &sc->sc_tq); - if (sc->sc_tq == NULL) { - device_printf(sc->sc_dev, "could not create taskqueue\n"); - error = ENXIO; - goto fail_ifnet; - } error = taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, "%s taskq", device_get_nameunit(sc->sc_dev)); if (error != 0) { @@ -462,7 +457,6 @@ cas_attach(struct cas_softc *sc) bus_dma_tag_destroy(sc->sc_pdmatag); fail_taskq: taskqueue_free(sc->sc_tq); - fail_ifnet: if_free(ifp); return (error); }