Use minimum of max_aio_procs and target_aio_procs when spawning new

aiod since there should be no more then max_aio_procs processes.
This commit is contained in:
Oleksandr Tymoshenko 2008-06-21 11:34:34 +00:00
parent 9b48cdcc39
commit 22035f4727
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179908

View File

@ -532,7 +532,7 @@ aio_init_aioinfo(struct proc *p)
uma_zfree(kaio_zone, ki);
}
while (num_aio_procs < target_aio_procs)
while (num_aio_procs < MIN(target_aio_procs, max_aio_procs))
aio_newproc(NULL);
}