Date: Mon, 5 Mar 2001 22:17:06 -0800 (PST) From: Bosko Milekic <bmilekic@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h Message-ID: <200103060617.f266H7u69208@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bmilekic 2001/03/05 22:17:06 PST
Modified files:
sys/kern kern_sx.c
sys/sys sx.h
Log:
- Add sx_descr description member to sx lock structure
- Add sx_xholder member to sx struct which is used for INVARIANTS-enabled
assertions. It indicates the thread that presently owns the xlock.
- Add some assertions to the sx lock code that will detect the fatal
API abuse:
xlock --> xlock
xlock --> slock
which now works thanks to sx_xholder.
Notice that the remaining two problematic cases:
slock --> xlock
slock --> slock (a little less problematic, but still recursion)
will need to be handled by witness eventually, as they are more
involved.
Reviewed by: jhb, jake, jasone
Revision Changes Path
1.2 +27 -7 src/sys/kern/kern_sx.c
1.2 +12 -8 src/sys/sys/sx.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103060617.f266H7u69208>
