viced: Enforce lwps limit for -L
authorAndrew Deason <adeason@sinenomine.net>
Mon, 7 Feb 2011 19:13:31 +0000 (13:13 -0600)
committerDerrick Brashear <shadow@dementia.org>
Wed, 16 Mar 2011 14:35:20 +0000 (07:35 -0700)
commit8c56218c6b7413b2de619d13fa40970c94db9f6a
treed1146992957d171f00c9862fcdeb1b942473ced9
parentcd0e5184455215e8bd8cae996bc1920c5375dab7
viced: Enforce lwps limit for -L

Previously, we only enforced the calculated lwp/thread maximum when
the -p argument was specified. When -L was specified, we set lwps to
128, which can be over the max of (effectively)
MAX_FILESERVER_THREAD-FILESERVER_HELPER_THREADS, depending on the
value of MAX_FILESERVER_THREAD.

Instead, enforce the lwps min/max after all code to set the lwps has
run. Note that this is slightly different for 1.4, so we don't reduce
the number of threads we run.

Reviewed-on: http://gerrit.openafs.org/3903
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 9315c66f15fb0d178e1c322cf14c0d64eea46c65)

Change-Id: Ia38726c9828966d2f475c7e488de913ae379c2e7
Reviewed-on: http://gerrit.openafs.org/4181
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/viced.c