Date: Mon, 3 Jul 2006 20:02:06 +0000 (UTC) From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.c Message-ID: <200607032002.k63K26U3030850@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
csjp 2006-07-03 20:02:06 UTC
FreeBSD src repository
Modified files:
sys/net bpf.c
Log:
Adjust descriptor locking to tell the kqueue subsystem that our descriptor is
already locked. The reason to do this is to avoid two lock+unlock operations
in a row. We need the lock here to serialize access to bd_pid for stats
collection purposes.
Drop the locks all together on detach, as they will be picked up by
knlist_remove.
This should fix a failed locking assertion when kqueue is being used with bpf
descriptors.
Discussed with: jmg
Revision Changes Path
1.169 +1 -3 src/sys/net/bpf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607032002.k63K26U3030850>
