cvs commit: src/sys/kern kern_ktrace.c

Robert Watson rwatson at
Mon Nov 14 19:30:33 GMT 2005

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

  FreeBSD src repository

  Modified files:
    sys/kern             kern_ktrace.c 
  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-src mailing list