]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Right now LOCK_DEBUG is enabled if KTR is on.
authorattilio <attilio@FreeBSD.org>
Mon, 2 Dec 2013 22:34:47 +0000 (22:34 +0000)
committerattilio <attilio@FreeBSD.org>
Mon, 2 Dec 2013 22:34:47 +0000 (22:34 +0000)
commitb07191879f76139f3566e59eff6486140b735878
tree98cb33d360b17393e49c674384b0c432ab1591e9
parent23959fb966a47efaa57b50c709a012e99439e601
Right now LOCK_DEBUG is enabled if KTR is on.
This is to support LOCK_LOG_* functionality effectively in debugging
environments but it is overkill because really LOCK_DEBUG should be on
only if (KTR_COMPILE & KTR_LOCK) is true.
Fix this by applying the correct logic.
In this process, move the KTR classes to its own header to reduce
namespace pollution.

Sponsored by: EMC / Isilon storage division
Reviewed by: jhb
sys/sys/ktr.h
sys/sys/ktr_class.h [new file with mode: 0644]
sys/sys/lock.h