diff options
| author | Kirk McKusick <mckusick@FreeBSD.org> | 2000-12-13 01:06:53 +0000 |
|---|---|---|
| committer | Kirk McKusick <mckusick@FreeBSD.org> | 2000-12-13 01:06:53 +0000 |
| commit | 0bf3b91d8accdf330ac840c013816b9f30fbc2ed (patch) | |
| tree | 015f6c2566e44c18b23172bb7d96a299b10b9604 /sys/kern/vfs_export.c | |
| parent | 5d24b61a76bd05e554749ab58535e1fb36f14a5d (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_export.c')
| -rw-r--r-- | sys/kern/vfs_export.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index a6bae88f2ada..f72095a11b81 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.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; |
