cvs commit: src/sys/kern kern_intr.c subr_sleepqueue.c src/sys/geom geom_io.c src/sys/sys proc.h

John Baldwin jhb at FreeBSD.org
Thu Sep 15 12:05:38 PDT 2005


jhb         2005-09-15 19:05:37 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_intr.c subr_sleepqueue.c 
    sys/geom             geom_io.c 
    sys/sys              proc.h 
  Log:
  - Add a new simple facility for marking the current thread as being in a
    state where sleeping on a sleep queue is not allowed.  The facility
    doesn't support recursion but uses a simple private per-thread flag
    (TDP_NOSLEEPING).  The sleepq_add() function will panic if the flag is
    set and INVARIANTS is enabled.
  - Use this new facility to replace the g_xup and g_xdown mutexes that were
    (ab)used to achieve similar behavior.
  - Disallow sleeping in interrupt threads when invoking interrupt handlers.
  
  MFC after:      1 week
  Reviewed by:    phk
  
  Revision  Changes    Path
  1.67      +7 -30     src/sys/geom/geom_io.c
  1.125     +2 -0      src/sys/kern/kern_intr.c
  1.19      +4 -0      src/sys/kern/subr_sleepqueue.c
  1.434     +14 -1     src/sys/sys/proc.h


More information about the cvs-src mailing list