o Revision 1.99 ("KSE Milestone 2") left the aio daemons
sleeping on a process object but changed the corresponding wakeup()s to the thread object. The result was that non-raw aio ops waited for an aio daemon to timeout before action was taken. Now, we sleep on the thread object. PR: kern/34016
This commit is contained in:
parent
94ef258fee
commit
12f63f1741
@ -998,8 +998,8 @@ aio_daemon(void *uproc)
|
||||
* If daemon is inactive for a long time, allow it to exit,
|
||||
* thereby freeing resources.
|
||||
*/
|
||||
if (((aiop->aiothreadflags & AIOP_SCHED) == 0) && tsleep(mycp,
|
||||
PRIBIO, "aiordy", aiod_lifetime)) {
|
||||
if ((aiop->aiothreadflags & AIOP_SCHED) == 0 &&
|
||||
tsleep(aiop->aiothread, PRIBIO, "aiordy", aiod_lifetime)) {
|
||||
s = splnet();
|
||||
if ((TAILQ_FIRST(&aio_jobs) == NULL) &&
|
||||
(TAILQ_FIRST(&aiop->jobtorun) == NULL)) {
|
||||
|
Loading…
Reference in New Issue
Block a user