]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: consider high/low mode when putting agent to sleep 7631/head
authorSage Weil <sage@redhat.com>
Fri, 12 Feb 2016 20:23:22 +0000 (15:23 -0500)
committerSage Weil <sage@redhat.com>
Fri, 12 Feb 2016 20:23:22 +0000 (15:23 -0500)
commit613457f9ee8c130b82d08d0e7dd0ce2af7db1174
treec6a24dffedcb90343d5915d3deacaed48b47a9bd
parent7496dd9f0c85e8a4cc6c5703e3eb889464e2a394
osd: consider high/low mode when putting agent to sleep

If we are in low flush mode, we may only get up to max_low_ops in flight,
in which case we may never go to sleep here.

Fix it by using the max_low_ops threshold when appropriate.

Note that agent_work() might start up *more* than this many ops (if there
are lots of evicts to do) currently, but I think it is fine if evicts go
a bit slower if we are in low mode.  (Really, the high/low shouldn't be
tied to flushing specifically.)

Fixes: #14752
Reported-by: Markus Blank-Burian <burian@muenster.de>
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc