Merge pull request #43364 from rzarzynski/wip-crimson-canceliores-on-stop

crimson/osd: cancel IO reservations on PG::stop().

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2021-09-30 22:14:11 +08:00 committed by GitHub
commit 130c7261aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1153,6 +1153,8 @@ seastar::future<> PG::stop()
{
logger().info("PG {} {}", pgid, __func__);
stopping = true;
cancel_local_background_io_reservation();
cancel_remote_recovery_reservation();
check_readable_timer.cancel();
renew_lease_timer.cancel();
return osdmap_gate.stop().then([this] {