Whamcloud - gitweb
LU-15513 lod: iterate initialized stripe 28/47028/7
authorBobi Jam <bobijam@whamcloud.com>
Mon, 11 Apr 2022 08:46:32 +0000 (16:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jun 2022 04:37:47 +0000 (04:37 +0000)
commit20318e34907d90d76759aee6f0cd609640bbb5aa
treebd0abe2fae5d6f7f75a372786001aa22f2cac284
parent250108ad754cfa932306d7edae10de14d40aeb4e
LU-15513 lod: iterate initialized stripe

Fix an array out of bounds access.

Do not iterate over the component objects in lod_fill_mirrors() to
check non-rotational OSTs if the component is unintialized or it is
a MDT or RELEASED component.

Fixes: 591a990c61 ("LU-15513 lod: skip uninit component in lod_fill_mirrors")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I8530cd30fab750c47f15ee9278ec6d68871367cc
Reviewed-on: https://review.whamcloud.com/47028
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_lov.c