]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: drop RepGather::ondone callback
authorSage Weil <sage@inktank.com>
Thu, 19 Dec 2013 21:12:20 +0000 (13:12 -0800)
committerSage Weil <sage@inktank.com>
Fri, 20 Dec 2013 00:40:01 +0000 (16:40 -0800)
commit923bff1dba11b0bb7d0d8f7b0cdec8c0064825b8
tree45d43781ce836f8f703e4eaac753eb18eac9d554
parent2a9c6fcda99ca081d4d45b92cca3598db143a939
osd/ReplicatedPG: drop RepGather::ondone callback

We kick the blocked contexts in the completion path of process_copy_chunk(),
after we have take the RWWRITE obc lock.  There is no need to delay the
unblocking until the RepGather finishes.

This also fixes a leak: the ondone wasn't getting cleaned up if a peering
interval change happens and the repgather is applied early in on_change().

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h