mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
MFC r196904:
Remove msleep() timeout from g_io_schedule_up/down(). It works fine without it, saving few percents of CPU on high request rates without need to rearm callout twice per request.
This commit is contained in:
parent
8c184a2d26
commit
9c4a609c2d
1 changed files with 2 additions and 2 deletions
|
|
@ -567,7 +567,7 @@ g_io_schedule_down(struct thread *tp __unused)
|
|||
if (bp == NULL) {
|
||||
CTR0(KTR_GEOM, "g_down going to sleep");
|
||||
msleep(&g_wait_down, &g_bio_run_down.bio_queue_lock,
|
||||
PRIBIO | PDROP, "-", hz/10);
|
||||
PRIBIO | PDROP, "-", 0);
|
||||
continue;
|
||||
}
|
||||
CTR0(KTR_GEOM, "g_down has work to do");
|
||||
|
|
@ -672,7 +672,7 @@ g_io_schedule_up(struct thread *tp __unused)
|
|||
}
|
||||
CTR0(KTR_GEOM, "g_up going to sleep");
|
||||
msleep(&g_wait_up, &g_bio_run_up.bio_queue_lock,
|
||||
PRIBIO | PDROP, "-", hz/10);
|
||||
PRIBIO | PDROP, "-", 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue