2323#include " common/BackTrace.h"
2424#include " common/ceph_time.h"
2525
26+ #include " rgw_asio_thread.h"
2627#include " rgw_cksum.h"
2728#include " rgw_sal.h"
2829#include " rgw_zone.h"
@@ -5230,6 +5231,7 @@ int RGWRados::delete_bucket(RGWBucketInfo& bucket_info, RGWObjVersionTracker& ob
52305231 }
52315232
52325233 /* remove bucket index objects asynchronously by best effort */
5234+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
52335235 (void ) CLSRGWIssueBucketIndexClean (index_pool,
52345236 bucket_objs,
52355237 cct->_conf ->rgw_bucket_index_max_aio )();
@@ -5444,6 +5446,7 @@ int RGWRados::bucket_check_index(const DoutPrefixProvider *dpp, RGWBucketInfo& b
54445446 bucket_objs_ret.emplace (iter.first , rgw_cls_check_index_ret ());
54455447 }
54465448
5449+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
54475450 ret = CLSRGWIssueBucketCheck (index_pool, oids, bucket_objs_ret, cct->_conf ->rgw_bucket_index_max_aio )();
54485451 if (ret < 0 ) {
54495452 return ret;
@@ -5468,6 +5471,7 @@ int RGWRados::bucket_rebuild_index(const DoutPrefixProvider *dpp, RGWBucketInfo&
54685471 return r;
54695472 }
54705473
5474+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
54715475 return CLSRGWIssueBucketRebuild (index_pool, bucket_objs, cct->_conf ->rgw_bucket_index_max_aio )();
54725476}
54735477
@@ -5619,6 +5623,8 @@ int RGWRados::bucket_set_reshard(const DoutPrefixProvider *dpp,
56195623 cpp_strerror (-r) << " )" << dendl;
56205624 return r;
56215625 }
5626+
5627+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
56225628 r = CLSRGWIssueSetBucketResharding (index_pool, bucket_objs, entry, cct->_conf ->rgw_bucket_index_max_aio )();
56235629 if (r < 0 ) {
56245630 ldpp_dout (dpp, 0 ) << " ERROR: " << __func__ <<
@@ -9526,6 +9532,7 @@ int RGWRados::cls_obj_set_bucket_tag_timeout(const DoutPrefixProvider *dpp, RGWB
95269532 if (r < 0 )
95279533 return r;
95289534
9535+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
95299536 return CLSRGWIssueSetTagTimeout (index_pool, bucket_objs, cct->_conf ->rgw_bucket_index_max_aio , timeout)();
95309537}
95319538
@@ -9657,6 +9664,7 @@ int RGWRados::cls_bucket_list_ordered(const DoutPrefixProvider *dpp,
96579664 auto & ioctx = index_pool;
96589665 std::map<int , rgw_cls_list_ret> shard_list_results;
96599666 cls_rgw_obj_key start_after_key (start_after.name , start_after.instance );
9667+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
96609668 r = CLSRGWIssueBucketList (ioctx, start_after_key, prefix, delimiter,
96619669 num_entries_per_shard,
96629670 list_versions, shard_oids, shard_list_results,
@@ -10441,6 +10449,7 @@ int RGWRados::cls_bucket_head(const DoutPrefixProvider *dpp, const RGWBucketInfo
1044110449 return r;
1044210450 }
1044310451
10452+ maybe_warn_about_blocking (dpp); // TODO: use AioTrottle
1044410453 r = CLSRGWIssueGetDirHeader (index_pool, oids, list_results, cct->_conf ->rgw_bucket_index_max_aio )();
1044510454 if (r < 0 ) {
1044610455 ldpp_dout (dpp, 20 ) << " cls_bucket_head: CLSRGWIssueGetDirHeader() returned "
0 commit comments