From e45bea777eb662951bafc506ea9383e940247269 Mon Sep 17 00:00:00 2001 From: Qiancheng Zhao Date: Mon, 19 Aug 2019 15:43:12 -0700 Subject: [PATCH] use acquire instead of relaxed in IdleTimerCallback() --- src/core/ext/filters/client_idle/client_idle_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ext/filters/client_idle/client_idle_filter.cc b/src/core/ext/filters/client_idle/client_idle_filter.cc index 13c35ae3730..9da098d6d6d 100644 --- a/src/core/ext/filters/client_idle/client_idle_filter.cc +++ b/src/core/ext/filters/client_idle/client_idle_filter.cc @@ -320,7 +320,7 @@ void ChannelData::IdleTimerCallback(void* arg, grpc_error* error) { // EnterIdle() operation finishes, preventing mistakenly entering IDLE // when active RPC exists. finished = chand->state_.CompareExchangeWeak( - &state, PROCESSING, MemoryOrder::RELAXED, MemoryOrder::RELAXED); + &state, PROCESSING, MemoryOrder::ACQUIRE, MemoryOrder::RELAXED); if (finished) { chand->EnterIdle(); chand->state_.Store(IDLE, MemoryOrder::RELAXED);