ceph/ceph — pull request #2363 by liewegas (2014-08-30 02:28:16+00:00)
Title: 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
Signed-off-by: Sage Weil