Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 05:08:41 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: 0b1ac58493b1 - stable/13 - age(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
Message-ID:  <202409300508.48U58fpw025812@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=0b1ac58493b16e55c882473567962b157ebbc775

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

    age(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 5cece2c24bfa618091e778df488fb2380fcecafe)
    (cherry picked from commit ea86e323e52fe5bd7bac73ba2247b5ab0a3df052)
---
 sys/dev/age/if_age.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/age/if_age.c b/sys/dev/age/if_age.c
index c459493ba67b..7bb494d81de2 100644
--- a/sys/dev/age/if_age.c
+++ b/sys/dev/age/if_age.c
@@ -638,12 +638,6 @@ age_attach(device_t dev)
 	/* Create local taskq. */
 	sc->age_tq = taskqueue_create_fast("age_taskq", M_WAITOK,
 	    taskqueue_thread_enqueue, &sc->age_tq);
-	if (sc->age_tq == NULL) {
-		device_printf(dev, "could not create taskqueue.\n");
-		ether_ifdetach(ifp);
-		error = ENXIO;
-		goto fail;
-	}
 	taskqueue_start_threads(&sc->age_tq, 1, PI_NET, "%s taskq",
 	    device_get_nameunit(sc->age_dev));
 



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