diff --git a/src/librbd/io/ImageDispatchSpec.h b/src/librbd/io/ImageDispatchSpec.h index 7cdc078a088..dc6a709f05e 100644 --- a/src/librbd/io/ImageDispatchSpec.h +++ b/src/librbd/io/ImageDispatchSpec.h @@ -140,7 +140,7 @@ public: } bool were_all_throttled() { - return m_throttled_flag & RBD_QOS_MASK; + return (m_throttled_flag & RBD_QOS_MASK) == RBD_QOS_MASK; } private: