svn commit: r324780 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Fri Oct 20 00:34:26 UTC 2017
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);
More information about the svn-src-all
mailing list