Whamcloud - gitweb
LU-15046 osp: precreate thread vs connect race 99/45099/24
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 30 Sep 2021 12:16:57 +0000 (15:16 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Nov 2022 07:09:53 +0000 (07:09 +0000)
commit7e0a2b073701e23f6c941d249e034abe1043ccd6
tree3a2c66a75b8114497591dbe9d1cf5f2afcf5c963
parented0f74cd635fa110c1896981d58c389826041808
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.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I7a42bf4b17ce5d46bc25bd548d81eb55f168804b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/45099
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_precreate.c