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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to