aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2019-11-11 06:51:05 -0500
committerIlya Dryomov <idryomov@gmail.com>2019-11-25 11:44:02 +0100
commit74d6f03019f8d70e7f634b8a6b1309051933d36e (patch)
treee2e0ee79f84bc2659484e7efc8c8d2ebf11ccd82 /drivers/gpu/drm/amd/amdgpu/cik.c
parentrbd: fix spelling mistake "requeueing" -> "requeuing" (diff)
downloadlinux-rng-74d6f03019f8d70e7f634b8a6b1309051933d36e.tar.xz
linux-rng-74d6f03019f8d70e7f634b8a6b1309051933d36e.zip
ceph: fix geting random mds from mdsmap
For example, if we have 5 mds in the mdsmap and the states are: m_info[5] --> [-1, 1, -1, 1, 1] If we get a random number 1, then we should get the mds index 3 as expected, but actually we will get index 2, which the state is -1. The issue is that the for loop increment will advance past any "up" MDS that was found during the while loop search. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
0 files changed, 0 insertions, 0 deletions