]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: PrimaryLogPG, PGBackend: complete callback even if interval changes 16536/head
authorJosh Durgin <jdurgin@redhat.com>
Sun, 23 Jul 2017 06:27:50 +0000 (02:27 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Sun, 23 Jul 2017 06:27:53 +0000 (02:27 -0400)
commit3f591d4f43a455a273f334d82bab8c92aeb664a1
tree8fb91c8ec93ea1b72eefc9408964f7a4bd76aa5f
parent27c1d62ae96ecc0c34fc0da55a7e529e0f718234
osd: PrimaryLogPG, PGBackend: complete callback even if interval changes

This avoids leaking the callback passed to remove_missing_object().
Use EAGAIN to signal that the work was not completed, so we don't have
to take the pg lock and check if the interval changed again in
PGBackend.

Fixes: http://tracker.ceph.com/issues/20747
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/PGBackend.cc
src/osd/PrimaryLogPG.cc