Whamcloud - gitweb
LU-15139 osp: block reads until the object is created 03/47003/24
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 6 Apr 2022 08:00:30 +0000 (11:00 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Nov 2022 07:10:46 +0000 (07:10 +0000)
commit4f2914537cc32fe89c4781bcfc87c38e3fe4419c
tree41d87aa17abb656abb4a595008a5c091e478af96
parentec1b0dc6e4730939f81a65ddfdec43d4f1dae50f
LU-15139 osp: block reads until the object is created

it's possible that remote llog can be read and written simultaneously
at recovery. for example, dtx recovery thread is fetching updates
while MDD's orphan cleanup procedure is removing orphans from PENDING.

OSP can be asked to read a just created in OSP cache object while
actual object on remote MDS hasn't been created yet. OSP should
block such reads until the creation is done.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Id0f52b90761839399102bed825569da6bfd17864
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47003
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/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_md_object.c