cvs commit: src/sys/kern kern_ktrace.c

Robert Watson rwatson at FreeBSD.org
Mon Nov 14 11:30:33 PST 2005


rwatson     2005-11-14 19:30:09 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_ktrace.c 
  Log:
  In ktr_getrequest(), acquire ktrace_mtx earlier -- while the race
  currently present is minor and offers no real semantic issues, it also
  doesn't make sense since an earlier lockless check has already
  occurred.  Also hold the mutex longer, over a manipulation of
  per-process ktrace state, which requires synchronization.
  
  MFC after:      1 month
  Pointed out by: jhb
  
  Revision  Changes    Path
  1.105     +3 -2      src/sys/kern/kern_ktrace.c


More information about the cvs-all mailing list