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 LindbergReceived 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