cvs commit: src/sys/net bpf.c

Christian S.J. Peron csjp at FreeBSD.org
Mon Jul 3 20:02:07 UTC 2006


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


More information about the cvs-src mailing list