Ops were already blocked when the requests were received via
watch/notify. Requests are now blocked for local requests as
well.
Fixes: #14510
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
{
RWLock::WLocker owner_locker(m_image_ctx.owner_lock);
if (m_image_ctx.exclusive_lock != nullptr &&
- !m_image_ctx.exclusive_lock->is_lock_owner()) {
+ (!m_image_ctx.exclusive_lock->is_lock_owner() ||
+ !m_image_ctx.exclusive_lock->accept_requests())) {
m_image_ctx.exclusive_lock->try_lock(&ctx);
trying_lock = true;
}