On Monday, April 16, 2012 at 12:37 PM, Yehuda Sadeh Weinraub wrote: > On Mon, Apr 16, 2012 at 12:00 PM, Sage Weil <sage@xxxxxxxxxxxx (mailto:sage@xxxxxxxxxxxx)> wrote: > > > > I pushed a wip-2301 that does this. The downside to this approach is that > > the is_safe() and is_complete() methods will return false until after the > > callback returns, which includes the callback itself. So a callback that > > assumes that is_complete() will return true will be wrong. > > > > If that's not okay, the alternative is to make the wait_for_complete() > > actually be a wait_for_complete_and_callback_has_returned(). That drops > > the symmetry between wait_for_complete() and is_complete(), which is > > awkward. > > > maybe is_ack(), is_safe() and is_complete()? > > Yehuda > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx (mailto:majordomo@xxxxxxxxxxxxxxx) > More majordomo info at http://vger.kernel.org/majordomo-info.html Or set the bool to true, then do the callback, then signal? -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html