]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: do not evict blocked objects 2363/head
authorSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:27:34 +0000 (19:27 -0700)
committerSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:27:34 +0000 (19:27 -0700)
commitfa45ed8190edc40e81d8c9711691c8123494fb9b
tree4575575986bc796c59e5222a4ce6d7f50f1fd9d0
parent67c552becd0fd5d55fd0aff766e8d6d38ac0ca0a
osd/ReplicatedPG: do not evict blocked objects

If the object is blocked, that means we are either still promoting it, or
we are in the process of doing a blocking flush.  In both cases, do not
evict it just yet.  For the promotion case in particular this can cause a
very long op delay because we'll have to restart the promotion, and this
can potentially loop indefinitely.

For the flush case, flushes are generally only blocking when the user
explicitly requests it.  In that case, we are not particularly concerned
that we may delay the objects eventual eviction as the user is probably
controlling that anyway (and even if they aren't, the agent will still
try this object again later).

Fixes: #9285
Reported-by: Wang, Zhiqiang <zhiqiang.wang@intel.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc