Whamcloud - gitweb
LU-5580 ptlrpc: policy switch directly in tbf 49/11749/8
authorWu Libin <lwu@ddn.com>
Wed, 16 Jul 2014 05:26:08 +0000 (13:26 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 10 Jul 2015 03:03:27 +0000 (03:03 +0000)
commite7ab554c1ca887e1a3fa9da5250b2debb4eee2d6
treedbb8755c29f06e93314e3caffbe9e6c9833e67d7
parenta838fe8b43a8e3afb35d4854745b4876726f82c5
LU-5580 ptlrpc: policy switch directly in tbf

Former version can't change nid to jobid(or reversely) directly in
tbf, it need to change to FIFO(or any other policy) first. This patch
fix this problem. It save the policy argument(like "nid" in tbf),
and if the policy start with a new argument(like "jobid"), it will
stop the former policy and start a new one.

This is also adapt to any other nrs policies if they have arguments.

Signed-off-by: Wu Libin <lwu@ddn.com>
Change-Id: I645af94d774f60e2081e3716b2f249fcab4930d4
Reviewed-on: http://review.whamcloud.com/11749
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_nrs.h
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/nrs.c