Index: sys/kern/subr_witness.c =================================================================== --- sys/kern/subr_witness.c +++ sys/kern/subr_witness.c @@ -1850,11 +1850,13 @@ found: w->w_refcount++; mtx_unlock_spin(&w_mtx); - if (lock_class != w->w_class) - kassert_panic( - "lock (%s) %s does not match earlier (%s) lock", - description, lock_class->lc_name, - w->w_class->lc_name); + if (lock_class != w->w_class) { + witness_output( + "lock (%s) %s does not match earlier (%s) lock\n", + description, lock_class->lc_name, + w->w_class->lc_name); + w->w_class = lock_class; + } return (w); }