From: Sage Weil Date: Sat, 27 Jan 2018 21:07:14 +0000 (-0600) Subject: osd/PG: stop holding PG ref until on_applied on PG removal X-Git-Tag: v13.0.2~222^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08007acb159f4ffc473738d28dec29f635fc51e2;p=ceph.git osd/PG: stop holding PG ref until on_applied on PG removal Not necessary--the backend should manage the lifecycle. We just own one ref anyway. Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 80398e4809ae..d8e2804544ba 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6283,7 +6283,6 @@ void PG::_delete_some() PGRef pgref(this); // keep pg ref around until txn completes to avoid any issues // with Sequencer lifecycle (seen w/ filestore). - t.register_on_applied(new ContainerContext(pgref)); t.register_on_commit(new ContainerContext(pgref)); t.register_on_applied(new ContainerContext(pgref)); int r = osd->store->queue_transaction(