Whamcloud - gitweb
LU-15832 lod: clear .do_index_ops in striping free
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 28 Apr 2022 14:48:01 +0000 (10:48 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 22 Jun 2022 00:14:31 +0000 (00:14 +0000)
commit062443add4ed378039a771dc569cabc7c6c1bc7d
treebbe328181b9ab7f13076eb2cb8207bd3c3318787
parent6de051aaa1ae73832bc0e5eda53616644474986b
LU-15832 lod: clear .do_index_ops in striping free

LDLM lock can guarantee LOD object directory striping is safe to
access, but lod_striping_free_nolock() should clear .do_index_ops,
otherwise upon some failure the directory striping is freed, while a
subsequent dt_try_as_dir() skips striping initialization, and call
.do_index_ops directly, which will cause crash.

Lustre-change: https://review.whamcloud.com/47256
Lustre-commit: 3d4ff484002bf6e29655503994c240da06f838e3

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib94a4ef2f8bf5f0d34521abff77d8be46ecbf428
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47555
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lod_object.c