Whamcloud - gitweb
LU-9227 nrs: Rate change of a TBF rule loses control 85/26085/4
authorQian Yingjin <qian@ddn.com>
Mon, 20 Mar 2017 02:33:54 +0000 (10:33 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:39:22 +0000 (03:39 +0000)
commit3fcefcaafcdbc532109042f993a0f28f7f553cf3
treeacbf189993f26bc3c5ed59498101ba4a76fb19fd
parent5a8e47d0a1a7548a7f6bbf977a4fdb3935adaed6
LU-9227 nrs: Rate change of a TBF rule loses control

In some test cases, i.e.
start dd_0 {dd.0} 1000
dd if=/dev/zero of=/mnt/lustre/test bs=1M count=100
start dd_1000 {dd.1000} 1000
After ran above commands, changing rate of dd_0 take no effect.
The reason is that starting rule dd_1000 increases the sequence,
but the sequence number of the class with id "dd.0" does not
change accordingly, resulting in failure of rate change.
This patch fixes this problem.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I9cdd469fd57dea692b86285cc26040a117b120ad
Reviewed-on: https://review.whamcloud.com/26085
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nrs_tbf.c
lustre/tests/sanityn.sh