PERFORCE change 83619 for review
John Baldwin
jhb at FreeBSD.org
Wed Sep 14 14:08:07 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=83619
Change 83619 by jhb at jhb_slimer on 2005/09/14 21:07:52
Uniquify these messages somewhat.
Affected files ...
.. //depot/projects/smpng/sys/kern/subr_witness.c#136 edit
Differences ...
==== //depot/projects/smpng/sys/kern/subr_witness.c#136 (text+ko) ====
@@ -919,7 +919,16 @@
/*
* Ok, yell about it.
*/
- printf("lock order reversal\n");
+ if (((lock->lo_flags & LO_SLEEPABLE) != 0 &&
+ (lock1->li_lock->lo_flags & LO_SLEEPABLE) == 0))
+ printf(
+ "lock order reversal: (sleepable after non-sleepable)\n");
+ else if ((lock1->li_lock->lo_flags & LO_SLEEPABLE) == 0
+ && lock == &Giant.mtx_object)
+ printf(
+ "lock order reversal: (Giant after non-sleepable)\n");
+ else
+ printf("lock order reversal:\n");
/*
* Try to locate an earlier lock with
* witness w in our list.
More information about the p4-projects
mailing list