Whamcloud - gitweb
LU-13440 obdclass: server qos penalty miscaculated
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 21 Apr 2021 12:05:52 +0000 (20:05 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 5 May 2021 03:55:11 +0000 (03:55 +0000)
commit500cb1636578c30e1bb9f190bb951c3605abf881
treee4c99d6baeaec6a8cc84aacf5e3d6267652bc804
parent0d687a7facd580726d902e54be57410ba4ec26aa
LU-13440 obdclass: server qos penalty miscaculated

Server qos penalty calculation uses active target count, but it
should use server count, which will make it larger than expected,
then weight of targets are often 0, and finally cause MDT0 is
often chosen in qos allocation.

Lustre-change: https://review.whamcloud.com/43385
Lustre-commit: 0ccce7ecb72f847f4235a513424d90119edad7ca

Fixes: 45222b2ef ("LU-12624 obdclass: lu_tgt_descs cleanup")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I1982363e4ff74c7344dd5e07d04e29214afa8a7f
Reviewed-on: https://review.whamcloud.com/43399
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/lu_tgt_descs.c