Whamcloud - gitweb
LU-18460 lod: avoid double llog initialization 71/57071/4
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 19 Nov 2024 15:30:25 +0000 (18:30 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 May 2025 04:04:25 +0000 (04:04 +0000)
commit0c364cf6f70818863ac08045470abe858af37839
treef54930c78c56a566292b092a1cfe1c8654fb9d1b
parentf69f27cc354741f797856ffb7c21474ebdab44c8
LU-18460 lod: avoid double llog initialization

lod should not try to initialize llogs if they have been initialized
already. this may happen if, for example, deactivation of specific
MDT has been lost and we activate already active MDT.
the result would be an assertion in lod_sub_prep_llog():
LustreError: 8141:0:(lod_sub_object.c:991:lod_sub_prep_llog())
ASSERTION( !ctxt->loc_handle ) failed:

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I17ed1a19ac143d1dd80e5c711c08311c49eda89e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57071
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_dev.c