mirror of
https://github.com/ceph/ceph
synced 2025-01-12 06:00:46 +00:00
librbd: dynamically disabling exclusive lock might leave lingering request
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
ad489f7b5c
commit
769f99490e
@ -403,6 +403,11 @@ void ImageWatcher::schedule_request_lock(bool use_timer, int timer_delay) {
|
||||
void ImageWatcher::notify_request_lock() {
|
||||
RWLock::RLocker owner_locker(m_image_ctx.owner_lock);
|
||||
RWLock::RLocker snap_locker(m_image_ctx.snap_lock);
|
||||
|
||||
// ExclusiveLock state machine can be dynamically disabled
|
||||
if (m_image_ctx.exclusive_lock == nullptr) {
|
||||
return;
|
||||
}
|
||||
assert(!m_image_ctx.exclusive_lock->is_lock_owner());
|
||||
|
||||
ldout(m_image_ctx.cct, 10) << this << " notify request lock" << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user