Whamcloud - gitweb
LU-15046 osp: precreate thread vs connect race
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 30 Sep 2021 12:16:57 +0000 (15:16 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 17 Jun 2023 05:40:36 +0000 (05:40 +0000)
commitb7ec0d239069c1bab2cec4ff19f15b4d0f409248
treed30b13e3904d2d64c43c384f6d736bd5df943964
parent12615ae3456fa932fa90c888e166aadd7cfb1f58
LU-15046 osp: precreate thread vs connect race

lcs_exp (required for fid client) was initialized in osp_obd_connect()
which races with osp_precreate_thread(). the latter can get stuck if
lcs_exp is not initialized and then the whole precreation logic is
blocked until remount. instead the precreation thread can just wait
preliminary until lcs_exp is initialized properly.

Lustre-change: https://review.whamcloud.com/45099
Lustre-commit: 7e0a2b073701e23f6c941d249e034abe1043ccd6
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I7a42bf4b17ce5d46bc25bd548d81eb55f168804b
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51308
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_precreate.c