]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/pg_backend: remove stopping and peering
authorSamuel Just <sjust@redhat.com>
Wed, 25 Jan 2023 05:51:34 +0000 (21:51 -0800)
committerSamuel Just <sjust@redhat.com>
Sat, 28 Jan 2023 01:20:47 +0000 (01:20 +0000)
commit110ecaf0607f3f3d33b47588177c31ba33d60051
tree55fb136a23b661ffc81a0915cbcc513d1035f3fe
parent6b99bb037f67058dbdf7f2e999fb78e91a19e328
crimson/osd/pg_backend: remove stopping and peering

These two state variables duplicate checks that *should* already
be handled by the IOInterruptCondition.  None of the stopping
checks should ever trigger because the caller would be in an
interruptible future context which already performed that check.

Moreover, peering doesn't really work -- it relies on the callback
firing prior the call to on_activate_complete(), and there isn't any
guarantee that will happen.  Storing the epoch from when the
callback was created as we do in IOInterruptCondition
would be required.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/ec_backend.h
src/crimson/osd/pg.cc
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h
src/crimson/osd/replicated_backend.cc
src/crimson/osd/replicated_backend.h