]> 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)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 29 Jul 2014 17:33:22 +0000 (10:33 -0700)
commitb287c677ba1a5573e66c8a287f6a1f420c3ba46f
treebe224da204ab6059abbc466336bd888af309e93c
parent4b13caf5be33d4644811d387d1350f2f11ac5409
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