cvs commit: src/sys/kern subr_prf.c

Robert Watson rwatson at
Mon Sep 26 01:02:26 PDT 2005

rwatson     2005-09-26 08:02:24 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_prf.c 
  Acquire Giant in uprintf() and tprintf() rather than asserting it.  In
  the vast majority of cases, these functions are called without mutexes
  held, meaning that in all but two cases, there will be no ordering
  issues with doing this, and it will eliminate the need for changes in
  the caller.  In two cases, mutexes are held, so Giant must be acquired
  before those mutexes such that uprintf() and tprintf() recurse Giant
  rather than generating a lock order reversal.
  Suggested by:   bde
  Revision  Changes    Path
  1.121     +11 -6     src/sys/kern/subr_prf.c

More information about the cvs-src mailing list