Remove the assertive KA_HELD and KA_UNHELD as long as they are dangerous,

and not really helpful.
This commit is contained in:
Attilio Rao 2009-02-05 15:09:04 +00:00
parent 67c19233f1
commit 05fa71ba43
2 changed files with 1 additions and 20 deletions

View File

@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd April 12, 2008
.Dd February 05, 2009
.Dt LOCK 9
.Os
.Sh NAME
@ -279,14 +279,6 @@ lock pointed to by the first argument.
Assert that the current thread has no lock on the
.Vt lkp
lock pointed to by the first argument.
.It Dv KA_HELD
Assert that an unspecified thread has a lock on the
.Vt lkp
lock pointed to by the first argument.
.It Dv KA_UNHELD
Assert that no thread has a lock on the
.Vt lkp
lock pointed to by the first argument.
.El
.Pp
In addition, one of the following optional assertions can be used with
@ -305,15 +297,6 @@ Assert that the current thread does not have a recursed lock on
.Fa lkp .
.El
.Pp
Note that
.Dv KA_HELD
and
.Dv KA_UNHELD
usage is highly discouraged.
They are intended to cater a bad behaviour
introduced by buffer cache lock handling.
They will hopefully be
made useless by revisiting such locks.
.Sh RETURN VALUES
The
.Fn lockmgr

View File

@ -183,8 +183,6 @@ _lockmgr_args_rw(struct lock *lk, u_int flags, struct rwlock *ilk,
#define KA_UNLOCKED LA_UNLOCKED
#define KA_RECURSED LA_RECURSED
#define KA_NOTRECURSED LA_NOTRECURSED
#define KA_HELD
#define KA_UNHELD
#endif
#endif /* _KERNEL */