panic: knlist locked, but should not be
Fredrik Lindberg
fli+freebsd-current at shapeshifter.se
Mon Jul 3 18:45:30 UTC 2006
John-Mark Gurney wrote:
>
> Why not drop the lock lines and keep the 0? As you said since it's
> the same lock, locking it a bit later won't hurt...
>
A yes of course the locks can be dropped from filt_bpfdetach(), that's
probably better. But bpfkqfilter() will have to keep its lock because it
modifies data. The lines could also be swapped (releasing the lock
before calling knlist_add) but that would just be stupid as the lock
would be acquired again in knlist_add.
Fredrik Lindberg
More information about the freebsd-current
mailing list