Whamcloud - gitweb
LU-15513 lod: iterate initialized stripe
authorBobi Jam <bobijam@whamcloud.com>
Wed, 18 May 2022 13:34:40 +0000 (21:34 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Jun 2022 20:31:40 +0000 (20:31 +0000)
commit1a04878d57c963f52788f9793534a8b8763de47d
treed80c8105f025e2c2f69edacfc620696cef65df0f
parentf71b7547b63842d0c3d448ab77d8ab07f0dd3d2a
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.

Lustre-change: https://review.whamcloud.com/47028
Lustre-commit: TBD (from b9445c05576da11cc230b290b1ec53131a0e1c2a)

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