]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't try to wait for pending if list is empty 2110/head
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 16 Jul 2014 19:23:31 +0000 (12:23 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 16 Jul 2014 20:33:26 +0000 (13:33 -0700)
commitf9f2417d7db01ecf2425039539997901615816a9
tree7295e7513a3ae61fc8148e3862b468115e28e4d2
parent834772354c555ae32d6329cfac2a43c5b1812888
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>
src/rgw/rgw_rados.cc