Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 07:28:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 219846] [panic] [kevent] mutex nm_kn_lock not owned, netmap with INVARIANTS+WITNESS
Message-ID:  <bug-219846-227-0eMT3Ben4y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219846-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219846-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219846

--- Comment #8 from Harald Schmalzbauer <bugzilla.freebsd@omnilan.de> ---
Just a quick note that I'm unfortunately busy with completely different thi=
ngs
:-(
And for the records, here's Vincenzo's approach which I usesd (successfully=
 as
far as I remember) back in 11.2:
+++ src/sys/dev/netmap/netmap_freebsd.c 2017-06-17 11:22:53.685116000 +0200
@@ -1374,7 +1374,7 @@
        kn->kn_fop =3D (ev =3D=3D EVFILT_WRITE) ?
                &netmap_wfiltops : &netmap_rfiltops;
        kn->kn_hook =3D priv;
-       knlist_add(&si->si.si_note, kn, 1);
+       knlist_add(&si->si.si_note, kn, 0);
        // XXX unlock(priv)
        ND("register %p %s td %p priv %p kn %p np_nifp %p kn_fp/fpop %s",
                na, na->ifp->if_xname, curthread, priv, kn,

No skills to contribute and no time to test at the moment, sorry.

Thanks for taking care, will get back to it :-)

-harry

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219846-227-0eMT3Ben4y>