Whamcloud - gitweb
LU-6215 ldlm: handle percpu_counter_init change in 3.18+ kernels 49/16649/6
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 1 Oct 2015 18:59:15 +0000 (14:59 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Oct 2015 17:39:41 +0000 (17:39 +0000)
commita2844eb7d4ea15b8164f219aec1900037f0c506b
treed4fac8819e260b1658018bd0f25eeb303c89ff03
parent55afbf5934e145e48a31193de601abd58e605a42
LU-6215 ldlm: handle percpu_counter_init change in 3.18+ kernels

Starting in 3.18 kernels the function percpu_counter_init()
started to take memory allocation flags GFP_*. This patch
detects and handles this new case thus enabling lustre servers
to function up to 4.2.1 kernels.

Change-Id: Ibdb716987c367dc6ea93f6f9747fb70fd7ac2cbb
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/16649
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Reviewed-by: Frank Zago <fzago@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4
lustre/ldlm/ldlm_reclaim.c