summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorYiming Zhu <zhuyiming@kuaishou.com>2026-07-24 18:49:20 +0800
committerIlya Dryomov <idryomov@gmail.com>2026-08-12 21:21:41 +0200
commit2c11c4bfdb7bd2808b3b3ac228e1f2d9bcf25457 (patch)
treea4c7a0d1bdf148d848181132a8c8c47a83296eb1 /tools/perf/scripts/python/bin/stackcollapse-record
parent3660b98d1204b419f6a77e9a295f148dcf38d042 (diff)
ceph: fix MDS random selection readiness predicate
CEPH_MDS_IS_READY() is parsed so that the ternary expression can return true for an MDS entry with state 0 when it is not laggy. This allows the random selector to choose a down/DNE rank. Group the ternary expression under the state check so zero-state ranks are not treated as ready. Cc: stable@vger.kernel.org Fixes: b38c9eb4757d ("ceph: add possible_max_rank and make the code more readable") Link: https://tracker.ceph.com/issues/78648 Signed-off-by: Yiming Zhu <zhuyiming@kuaishou.com> Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions