]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/object_context: await in-progress loading (per-obc)
authorMatan Breizman <mbreizma@redhat.com>
Tue, 28 May 2024 13:23:10 +0000 (13:23 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 29 May 2024 11:50:34 +0000 (11:50 +0000)
commite456bd7cdd1ad1cd68026cebedd5b1d9d01001f7
tree6c97dfb5b6e259bfc9edeca6c2cc857cada90e46
parentccc0001a5dc54aef5b4d4b3f85952f1edaf17fb1
crimson/osd/object_context: await in-progress loading (per-obc)

```
  // obc loading is a concurrent phase. In case this obc is being loaded,
  // make other useres of this obc to await for the loading to complete.
```

Since we now await for loading to finish (in-case in progress), we can
also assert is_loaded().

Fixes: https://tracker.ceph.com/issues/65451
Co-authored-by: Xuehan Xu <xuxuehan@qianxin.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/common/interruptible_future.h
src/crimson/osd/object_context.h
src/crimson/osd/object_context_loader.cc
src/crimson/osd/object_context_loader.h