Whamcloud - gitweb
LU-8006 ptlrpc: specify ordering of TBF policy rules 76/19476/12
authorLi Xi <lixi@ddn.com>
Fri, 15 Jul 2016 01:02:54 +0000 (09:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 Aug 2016 03:58:37 +0000 (03:58 +0000)
commitaa14b0b9a1521b3deb26a07eb8f7bb28ce793001
tree003a9461fa6afaaa05b9509c8aea73f5b945fc3a
parent9a7c0e1207becd10fb70672193ca39cbfabdcf84
LU-8006 ptlrpc: specify ordering of TBF policy rules

With this patch, when inserting a new rule, the rank of the rule
can be given by "start" command. Also, the rank of the rule can be
changed by command of "change".

lctl set_param ost.OSS.ost_io.nrs_tbf_rule=
"start $NAME jobid={$ID} rate=$RATE rank=$NEXT"
lctl set_param ost.OSS.ost_io.nrs_tbf_rule=
"change $NAME rate=$RATE rank=$NEXT"

$NAME is the target rule name. $NEXT is the rule name that the target
rule will be moved before.

Signed-off-by: Li Xi <lixi@ddn.com>
Change-Id: I6b465342365d6c09710616cd3c9e068b66a8fc89
Reviewed-on: http://review.whamcloud.com/19476
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_nrs_tbf.h
lustre/ptlrpc/nrs_tbf.c
lustre/tests/sanityn.sh