Fix a last second typo about recent lockmgr_disown() introduction.
This commit is contained in:
parent
d7a7e17968
commit
6edbb3ee9e
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user