Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 05:08:40 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: 3e90f15df4c0 - stable/13 - ae(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
Message-ID:  <202409300508.48U58eHf025763@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=3e90f15df4c06b47e9b991baffcfca7ae7ad804c

commit 3e90f15df4c06b47e9b991baffcfca7ae7ad804c
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:34 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:40 +0000

    ae(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 3f3f3ca25bc453315c6a1f5d16bfcc1189d41bdd)
    (cherry picked from commit 5de9286b9af6e2448ab7d3fe749d37dd00b915e7)
---
 sys/dev/ae/if_ae.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c
index dfff2ce22063..f8e83dc3c563 100644
--- a/sys/dev/ae/if_ae.c
+++ b/sys/dev/ae/if_ae.c
@@ -371,12 +371,6 @@ ae_attach(device_t dev)
 	 */
 	sc->tq = taskqueue_create_fast("ae_taskq", M_WAITOK,
             taskqueue_thread_enqueue, &sc->tq);
-	if (sc->tq == NULL) {
-		device_printf(dev, "could not create taskqueue.\n");
-		ether_ifdetach(ifp);
-		error = ENXIO;
-		goto fail;
-	}
 	taskqueue_start_threads(&sc->tq, 1, PI_NET, "%s taskq",
 	    device_get_nameunit(sc->dev));
 



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