... since it went stale with commit
2914eef50d69 ("rbd: Changed
exclusive-lock implementation to use the new managed-lock"). In the
context of exclusive lock, requesting the lock refers to a specific
action which may or may not be performed as part of acquiring the lock
and lock_acquire() doesn't get visibility into that.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
9159a2dd032bf47a030260660ff64b5be2d72648)
int r = lock_ctx.wait();
if (r < 0) {
- lderr(cct) << "failed to request exclusive lock: " << cpp_strerror(r)
+ lderr(cct) << "failed to acquire exclusive lock: " << cpp_strerror(r)
<< dendl;
return r;
}
if (ictx->exclusive_lock == nullptr) {
return -EINVAL;
} else if (!ictx->exclusive_lock->is_lock_owner()) {
- lderr(cct) << "failed to acquire exclusive lock" << dendl;
return ictx->exclusive_lock->get_unlocked_op_error();
}