diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 2430804084df..153b5058e301 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -621,7 +621,7 @@ _mtx_lock_spin(struct mtx *m, int opts, const char *file, int line) while (m->mtx_lock != MTX_UNOWNED) { if (i++ < 10000000) continue; - if (i++ < 60000000) + if (i < 60000000) DELAY(1); #ifdef DDB else if (!db_active) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 2430804084df..153b5058e301 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -621,7 +621,7 @@ _mtx_lock_spin(struct mtx *m, int opts, const char *file, int line) while (m->mtx_lock != MTX_UNOWNED) { if (i++ < 10000000) continue; - if (i++ < 60000000) + if (i < 60000000) DELAY(1); #ifdef DDB else if (!db_active)