Whamcloud - gitweb
LU-6206 ptlrpc: start minimum service threads 23/13823/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 14 Jan 2015 14:55:44 +0000 (09:55 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 May 2015 03:27:26 +0000 (03:27 +0000)
commitcafa669a43062c5097d40803b9ba14e66edbae25
tree5ce6c40699a87c4448ef18fbfdbbfd4ccbe8053a
parent6804cf756791d0e8342f209f2daf445100509b22
LU-6206 ptlrpc: start minimum service threads

If the ptlrpc_min_threads parameter is changed via /proc after the
service has started, then at least the requested number of service
threads should be started.  Otherwise this parameter would only be
used at initial thread startup and ignored if changed via /proc.

Fix conf-sanity.sh test_53[ab] to verify that at least the minimum
number of threads has been started when threads_min parameter is
changed, instead of just checking the parameter itself.  Also fix
test code style for 80-column line wrapping and tabs for indents.

The head utility does not always support shortcut "-1" option. It
should be specified as "-n1".

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I6e4bb4131d7500a93952b64102f885c765500c1e
Reviewed-on: http://review.whamcloud.com/13823
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/service.c
lustre/tests/conf-sanity.sh