Whamcloud - gitweb
LU-15926 nrs: fix tbf realtime rules
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Thu, 9 Jun 2022 20:50:06 +0000 (22:50 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:17:54 +0000 (16:17 +0000)
commitc29eb05fcf9b9c3fced07d8c08a0a565b83338e5
treefa621057f55389fd1cc9a16c646590da17a55b7c
parent0c36b6b3a956f60c801162f918957c205748b4dd
LU-15926 nrs: fix tbf realtime rules

tc_nsecs_resid should be reset to 0 when changing a rule otherwise
this could lead to mds crashes for realtime policies.

nrs_tbf_req_get(): ASSERTION( cli->tc_nsecs_resid < cli->tc_nsecs )

Lustre-change: https://review.whamcloud.com/47585
Lustre-commit: 530861b344e46bef51c80adac4640c4586d8463a

Fixes: d11fa2c27959 ("LU-9228 nrs: TBF realtime policies under congestion")
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Signed-off-by: Xing Huang <hxing@ddn.com>
Change-Id: I280acb42e104088c6b8750a0bb7bf9c50cf96e73
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52115
Reviewed-by: Qian Yingjin <qian@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ptlrpc/nrs_tbf.c