Fix a last second typo about recent lockmgr_disown() introduction.

This commit is contained in:
Attilio Rao 2008-01-09 00:02:43 +00:00
parent d7a7e17968
commit 6edbb3ee9e

View File

@ -546,9 +546,9 @@ lockmgr_disown(struct lock *lkp)
struct thread *td;
td = curthread;
KASSERT(lkp->lk_exclusivecount || lkp->lk_lockholder == LK_KERNPROC,
KASSERT(lkp->lk_exclusivecount,
("%s: %p lockmgr must be exclusively locked", __func__, lkp));
KASSERT(lkp->lk_lockholder == td,
KASSERT(lkp->lk_lockholder == td || lkp->lk_lockholder == LK_KERNPROC,
("%s: %p lockmgr must be locked by curthread (%p)", __func__, lkp,
td));