]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: fix were_all_throttled() to avoid incorrect ret-value
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 28 Feb 2019 08:12:17 +0000 (03:12 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 1 Mar 2019 14:33:48 +0000 (09:33 -0500)
Fixes: http://tracker.ceph.com/issues/38504
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/librbd/io/ImageDispatchSpec.h

index 7cdc078a0886c74bd372f5dbb4f591df01a87a45..dc6a709f05ec3ba5607943de8f1c5aada184d57f 100644 (file)
@@ -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: