]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: trigger the cache agent after a promotion
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Aug 2015 11:47:24 +0000 (13:47 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 14 Aug 2015 12:31:48 +0000 (14:31 +0200)
commite1f58feb9b1d20b72f2eb2eefdea5982e0cddccd
treeaab74f7b14c3c6e9f102de0ef2584a0ab63c6543
parentd8d6bb898d976a479c33baebcd4ade0ef120a18e
osd: trigger the cache agent after a promotion

When a proxy read happens, the object promotion is done in parallel. The
agent_choose_mode function must be called to reconsider the situation
to protect against the following scenario:

  * proxy read
  * agent_choose_mode finds no object exists and the agent
    goes idle
  * object promotion happens
  * the agent does not reconsider and eviction does not happen
    although it should

http://tracker.ceph.com/issues/12673 Fixes: #12673

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/osd/ReplicatedPG.cc