Date: Thu, 15 Sep 2005 19:05:37 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_intr.c subr_sleepqueue.c src/sys/geom geom_io.c src/sys/sys proc.h Message-ID: <200509151905.j8FJ5beJ008055@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509151905.j8FJ5beJ008055>