Re: panic: knlist locked, but should not be

From: Fredrik Lindberg <fli+freebsd-current_at_shapeshifter.se>
Date: Mon, 03 Jul 2006 20:45:17 +0200
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
Received on Mon Jul 03 2006 - 16:45:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC