summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index a6bae88..f72095a 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1103,12 +1103,11 @@ sched_sync(void)
int
speedup_syncer()
{
- int s;
- s = splhigh();
+ mtx_enter(&sched_lock, MTX_SPIN);
if (updateproc->p_wchan == &lbolt)
setrunnable(updateproc);
- splx(s);
+ mtx_exit(&sched_lock, MTX_SPIN);
if (rushjob < syncdelay / 2) {
rushjob += 1;
stat_rush_requests += 1;
OpenPOWER on IntegriCloud