Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ldout(m_image_ctx.cct, 10) << this << " queuing release of exclusive lock"
<< dendl;
- FunctionContext *ctx = new FunctionContext(
- boost::bind(&ImageWatcher::notify_release_lock, this));
- m_task_finisher->queue(TASK_CODE_RELEASING_LOCK, ctx);
+ m_image_ctx.exclusive_lock->release_lock(nullptr);
}
return true;
}
int notify_rename(const std::string &image_name);
void notify_acquired_lock();
- void notify_release_lock();
void notify_released_lock();
void notify_request_lock();
enum TaskCode {
TASK_CODE_ACQUIRED_LOCK,
TASK_CODE_REQUEST_LOCK,
- TASK_CODE_RELEASING_LOCK,
TASK_CODE_RELEASED_LOCK,
TASK_CODE_CANCEL_ASYNC_REQUESTS,
TASK_CODE_REREGISTER_WATCH,