Date: Fri, 20 Oct 2017 00:34:25 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324780 - head/sys/kern Message-ID: <201710200034.v9K0YPqB041412@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Fri Oct 20 00:34:25 2017 New Revision: 324780 URL: https://svnweb.freebsd.org/changeset/base/324780 Log: mtx: stop testing SCHEDULER_STOPPED in kabi funcs for spin mutexes There is nothing panic-breaking to do in the unlock case and the lock case will fallback to the slow path doing the check already. MFC after: 1 week Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c ============================================================================== --- head/sys/kern/kern_mutex.c Fri Oct 20 00:33:49 2017 (r324779) +++ head/sys/kern/kern_mutex.c Fri Oct 20 00:34:25 2017 (r324780) @@ -291,9 +291,6 @@ __mtx_lock_spin_flags(volatile uintptr_t *c, int opts, struct mtx *m; uintptr_t tid, v; - if (SCHEDULER_STOPPED()) - return; - m = mtxlock2mtx(c); KASSERT(m->mtx_lock != MTX_DESTROYED, @@ -355,9 +352,6 @@ __mtx_unlock_spin_flags(volatile uintptr_t *c, int opt int line) { struct mtx *m; - - if (SCHEDULER_STOPPED()) - return; m = mtxlock2mtx(c);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710200034.v9K0YPqB041412>