Home
last modified time | relevance | path

Searched hist:"329 c75a73044af0f5a628267c024628cd4a609c3" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/kern/
H A Dsubr_prf.cdiff 329c75a73044af0f5a628267c024628cd4a609c3 Mon Sep 26 10:02:24 CEST 2005 Robert Watson <rwatson@FreeBSD.org> 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
diff 329c75a73044af0f5a628267c024628cd4a609c3 Mon Sep 26 10:02:24 CEST 2005 Robert Watson <rwatson@FreeBSD.org> 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