Whamcloud - gitweb
LU-718 mdt: allow mds_num_threads module parameter
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 27 Aug 2012 21:19:40 +0000 (15:19 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 24 Oct 2012 15:56:00 +0000 (11:56 -0400)
commita6940e04863dab1eeefc5280b41552e492455145
tree776ed65ed8c6c83868c32827a6e3550e2dee4cad
parent03298579a2bc98a15ba2b49feb03df20b9c89ce8
LU-718 mdt: allow mds_num_threads module parameter

In 1.8.x the MDS service threads tunable is called "mds_num_threads",
but in 2.0/2.1 this was renamed mdt_num_threads without any chance
of compatibility.  In 2.3.x this was named back to mds_num_threads
(commit bd8835cc2dde6e86701650ccf90423ecd8fb042e) since the threads
are a property of the MDS, not of the MDT(s) on the system.

Add a compatible module option "mds_num_threads" for 2.1 so that it
is possible to upgrade 1.8->2.1->2.4 without problems.  No message
is printed in 2.1.x about deprecation, since it isn't possible to use
only one or the other in 2.1, and a warning will be printed in 2.3+
once the system is upgraded.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I3cb095812488b9459e4a3e878757d40410accab0
Reviewed-on: http://review.whamcloud.com/3804
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/mdt/mdt_handler.c