Whamcloud - gitweb
LU-8125 nrs: pol_arg should be copied after the policy starts 64/20164/7
authorEmoly Liu <emoly.liu@intel.com>
Fri, 24 Jun 2016 01:21:13 +0000 (09:21 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 5 Jul 2016 23:47:42 +0000 (23:47 +0000)
commitd6f305f601fdcd032657f1ff8d107fc175b22be6
tree44d2935bb04a5d6c87e638e2d517f925fe793529
parentba162203853721dd2ad16bcc2212b11461974264
LU-8125 nrs: pol_arg should be copied after the policy starts

NRS policy->pol_arg should be copied to a given policy argument
after the policy starts, otherwise a wrong argument will be saved
and it will cause LBUG when we run "lctl get_param" to get NRS
policy.
sanityn.sh test_77h is added to verify this patch.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I5a015bb44fa88f69a4d5347cc2721eb72a57c8ad
Reviewed-on: http://review.whamcloud.com/20164
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Jean-Baptiste Riaux <riaux.jb@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nrs.c
lustre/tests/sanityn.sh