Whamcloud - gitweb
LU-15139 osp: block reads until the object is created
authorAlex Zhuravlev <bzzz@whamcloud.com>
Sun, 13 Nov 2022 14:51:30 +0000 (17:51 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 19 Nov 2022 17:33:17 +0000 (17:33 +0000)
commitd53a7f35f4fa60613b857a9b005fa88e36c6b331
treeb1bab56f4f592b874c36642cd191cc2956d27686
parent53e019a47d9790aa887b16b5c3c312107fd1e4a5
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.

Lustre-change: https://review.whamcloud.com/47003/
Lustre-commit: 4f2914537cc32fe89c4781bcfc87c38e3fe4419c

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I5596c791a758dd542746afd961eb1ed9c97845be
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49146
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_md_object.c