summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMeir Elisha <meir.elisha@volumez.com>2025-04-08 17:38:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-02 09:02:12 +0300
commitba52fdf767b5616860375b1830b752d765766be4 (patch)
tree60a0d22e7e5ad3792eb85d0c4ee48199e6ddbc8c /tools/perf/scripts/python/export-to-postgresql.py
parent6ee0689104a611fd20cc3bed7ea96ec715529dab (diff)
downloadlinux-ba52fdf767b5616860375b1830b752d765766be4.tar.xz
md/raid1: Add check for missing source disk in process_checks()
[ Upstream commit b7c178d9e57c8fd4238ff77263b877f6f16182ba ] During recovery/check operations, the process_checks function loops through available disks to find a 'primary' source with successfully read data. If no suitable source disk is found after checking all possibilities, the 'primary' index will reach conf->raid_disks * 2. Add an explicit check for this condition after the loop. If no source disk was found, print an error message and return early to prevent further processing without a valid primary source. Link: https://lore.kernel.org/linux-raid/20250408143808.1026534-1-meir.elisha@volumez.com Signed-off-by: Meir Elisha <meir.elisha@volumez.com> Suggested-and-reviewed-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions