]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/Session: fix race between have_backoff() and clear_backoffs()
authorSage Weil <sage@redhat.com>
Mon, 13 Feb 2017 20:26:24 +0000 (15:26 -0500)
committerSage Weil <sage@redhat.com>
Tue, 14 Feb 2017 04:03:53 +0000 (23:03 -0500)
commit5e885cca2214d0b82d630222af82ceff303c8f60
treeb8c00dd9c05b54a57dc4172e15c6dda2a800e2a6
parentd708041adcde862fbf1ce5189ed7729e816d8e1c
osd/Session: fix race between have_backoff() and clear_backoffs()

We may return a raw pointer that is about to get deallocated by
clear_backoffs().  Fix by returning a reference, preventing the free.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PrimaryLogPG.cc
src/osd/Session.h