No further refs to the object can remain at this point.
Furthermore, the callbacks might lock mutexes of their
own.
Backport: bobtail
Fixes: #4378
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
on_deletion_complete.push_front(completion);
}
~DeletingState() {
- Mutex::Locker l(lock);
for (list<Context *>::iterator i = on_deletion_complete.begin();
i != on_deletion_complete.end();
++i) {