]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't try to wait for pending if list is empty
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 16 Jul 2014 19:23:31 +0000 (12:23 -0700)
committerSage Weil <sage@redhat.com>
Wed, 16 Jul 2014 22:27:49 +0000 (15:27 -0700)
commitb89ab5f78d2f87368aeda09fb1801dc7e36f2933
tree3628196e0f6b61ffeeb7a41ecb3af374c753ec01
parent3e0d9800767018625f0e7d797c812aa44c426dab
rgw: don't try to wait for pending if list is empty

Fixes: #8846
Backport: firefly, dumpling

This was broken at ea68b9372319fd0bab40856db26528d36359102e. We ended
up calling wait_pending_front() when pending list was empty.
This commit also moves the need_to_wait check to a different place,
where we actually throttle (and not just drain completed IOs).

Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit f9f2417d7db01ecf2425039539997901615816a9)
src/rgw/rgw_rados.cc