]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix io blocked accounting
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 19 Oct 2017 00:39:34 +0000 (17:39 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:05:38 +0000 (08:05 -0700)
commit75ce8000b60411c9e552a9c4363f73fa80ba1fca
treece71413779fd94fc2786e2fed9e4195045eac449
parent77ac03608adb71d4fbced0df75f2055533b97877
rgw: fix io blocked accounting

Now that we can have multiple IOs per coroutine, need to only decrease
num_blocked one time when switching from io blocked to unblocked. Also,
is_blocked() should not return true if is_done.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_coroutine.cc
src/rgw/rgw_coroutine.h