Whamcloud - gitweb
LU-13440 obdclass: server qos penalty miscaculated 85/43385/1
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 21 Apr 2021 12:05:52 +0000 (20:05 +0800)
committerLai Siyao <lai.siyao@whamcloud.com>
Wed, 21 Apr 2021 12:05:52 +0000 (20:05 +0800)
commit809bd318183f9b14cccf04f10e34b7b367f19e53
tree848df69f656ed94a6657283e8a68ebfbe9dfa5d9
parentc58ce2c18590c8fe378c7902303e8d036d41bfe4
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.

Fixes: 45222b2ef ("LU-12624 obdclass: lu_tgt_descs cleanup")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I1982363e4ff74c7344dd5e07d04e29214afa8a7f
lustre/obdclass/lu_tgt_descs.c