Skip to content

cls/rgw: define lc ops in terms of ObjectOperation instead of IoCtx#58448

Merged
cbodley merged 2 commits intoceph:mainfrom
cbodley:wip-rgw-lc-async
Aug 14, 2024
Merged

cls/rgw: define lc ops in terms of ObjectOperation instead of IoCtx#58448
cbodley merged 2 commits intoceph:mainfrom
cbodley:wip-rgw-lc-async

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Jul 5, 2024

the IoCtx functions are synchronous and not meant to be used in rgw. replace them with ObjectOperation arguments for use with rgw_rados_operate() and optional_yield

these IoCtx functions should have been hidden by the CLS_CLIENT_HIDE_IOCTX define, but that was never added to the rgw_common target which uses them

when enabling rgw_asio_assert_yielding from #58179 and running s3-tests, test_lifecycle_set triggers an assertion because RGWLC::set_bucket_config() didn't support optional_yield

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

cbodley added 2 commits July 23, 2024 08:46
Signed-off-by: Casey Bodley <cbodley@redhat.com>
clean up the lc functions that were supposed to be hidden by
CLS_CLIENT_HIDE_IOCTX

this allows rgw to use them asynchonously with rgw_rados_operate() and
optional_yield, and warn about blocking calls that should be async

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Jul 26, 2024

jenkins test make check arm64

@cbodley
Copy link
Contributor Author

cbodley commented Aug 13, 2024

Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this all looks good to me

@cbodley cbodley merged commit 52d63b5 into ceph:main Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants