Whamcloud - gitweb
LU-2800 autoconf: clean up sysctl table handling 02/8102/2
authorJames Simmons <uja.ornl@gmail.com>
Wed, 30 Oct 2013 12:26:33 +0000 (08:26 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 Dec 2013 12:55:27 +0000 (12:55 +0000)
commit2120ef466f9748774086177a3119fe641067a53d
treea6092f490ee0a7d803ee5748b43bf482efd15eae
parentd406aa3e71cde588ea53d42ff2596d77e65e33f8
LU-2800 autoconf: clean up sysctl table handling

Before linux kernel version 2.6.24 came out lustre
like other subsystems registering with sysctl had
to assign unquie numbers for ctl_name in struct
ctl_table. After 2.6.24 this requirement changed
and lustre started to use CTL_UNNUMBERED as the
default value. Since we no longer support 2.6.24
and earlier kernels we can remove this test and
simply the code. We also simplifed the handling
of the strategy field in struct ctl_table. The
final fix is that several LND drivers never handled
that case of 2.6.33 and above kernels which removed
the ctl_name and strategy fields altogether. This
patch addresses this so LND drivers can be handled
better on distros using newer kernels.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I0f5b64552e7d54abf4b73bfe285109573725edaf
Reviewed-on: http://review.whamcloud.com/8102
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
20 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/kp30.h
libcfs/libcfs/linux/linux-proc.c
lnet/include/lnet/Makefile.am
lnet/include/lnet/lnet-sysctl.h [deleted file]
lnet/klnds/gnilnd/gnilnd.h
lnet/klnds/gnilnd/gnilnd_modparams.c
lnet/klnds/gnilnd/gnilnd_sysctl.c
lnet/klnds/mxlnd/mxlnd.h
lnet/klnds/mxlnd/mxlnd_modparams.c
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_modparams.c
lnet/klnds/qswlnd/qswlnd.h
lnet/klnds/qswlnd/qswlnd_modparams.c
lnet/klnds/ralnd/ralnd.h
lnet/klnds/ralnd/ralnd_modparams.c
lnet/klnds/socklnd/socklnd.h
lnet/klnds/socklnd/socklnd_lib-linux.c
lnet/lnet/router_proc.c
lustre/obdclass/linux/linux-sysctl.c