Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 05:08:47 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 545f28e021eb - stable/13 - cas(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
Message-ID:  <202409300508.48U58lkT026058@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=545f28e021eb9cb65c6abf7f4221f78d017565e4

commit 545f28e021eb9cb65c6abf7f4221f78d017565e4
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:37 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:42 +0000

    cas(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D45853
    
    (cherry picked from commit af28fc3c191cf572f7def767c60fff59d48947df)
    (cherry picked from commit e78770d62f8ad7e10f97defd3bb933623a3ded0c)
---
 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 79a577208a2f..8071635c20e0 100644
--- a/sys/dev/cas/if_cas.c
+++ b/sys/dev/cas/if_cas.c
@@ -210,11 +210,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) {
@@ -467,7 +462,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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409300508.48U58lkT026058>