]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: pull requeued requests off one at a time
authorSage Weil <sage@inktank.com>
Mon, 18 Feb 2013 04:49:52 +0000 (20:49 -0800)
committerSage Weil <sage@inktank.com>
Tue, 19 Feb 2013 18:41:09 +0000 (10:41 -0800)
commitf1841e4189fce70ef5722d508289e516faa9af6a
tree0721ff97bae99dbe8baeb6a26748fb5eff446df6
parent4002d70ac0bc68320a15aeaea6a80c2ee9ae8f21
osd: pull requeued requests off one at a time

Pull items off the finished queue on at a time.  In certain cases, an
event may result in new items betting added to the finished queue that
will be put at the *front* instead of the back.  See latest incarnation
of #2947.

Note that this is a significant changed in behavior in that we can
theoretically starve if an event keeps resulting in new events getting
generated.  Beware!

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc