diff options
author | gonzo <gonzo@FreeBSD.org> | 2008-06-21 11:34:34 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2008-06-21 11:34:34 +0000 |
commit | f0ffee5444c824fa1064cc1dfa076625e1ea169f (patch) | |
tree | 15a0fafcb9ed1053f4877731c9b7f46b68fd27d3 /sys/kern/vfs_aio.c | |
parent | 9254f3ae51d2393c6c949dd0df66da7390fb9b0e (diff) | |
download | FreeBSD-src-f0ffee5444c824fa1064cc1dfa076625e1ea169f.zip FreeBSD-src-f0ffee5444c824fa1064cc1dfa076625e1ea169f.tar.gz |
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.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 60a8149..e86ae2c 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -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); } |