Whamcloud - gitweb
LU-17344 lfsck: check the validity of the res_id 65/53565/2
authorHongchao Zhang <hongchao@whamcloud.com>
Mon, 11 Dec 2023 19:54:19 +0000 (03:54 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Apr 2024 21:00:51 +0000 (21:00 +0000)
commit5d0c8fed33b1e214d6c633712699c4c969d2bf6e
treeedcc51ca3bd3cde47af003e6670ef54925498724
parent0c1a65c0422f8322f52a3ada6c1296653c20cbcc
LU-17344 lfsck: check the validity of the res_id

During processing the object destroying request in LFSCK,
the incoming FID could generate invalid ldlm_res_id even if
the dt_object is loaded successfully by this FID, this patch
adds checks for the validity of the generated res_id and
return error instead of triggering the panic.

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: Ibc5d16c3c7781fd92c44e48960c3746be81739d5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53565
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lfsck/lfsck_layout.c