Current code pass SimpleLock pointer to Locker::wrlock_start().
Compiler constructs a temp LockOp with flags == 0.
This patch also changes definition of Locker::wrlock_start(),
prevent compiler from doing this in the future.
Fixes: https://tracker.ceph.com/issues/44416
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
goto out;
}
} else {
- if (!wrlock_start(lock, mdr)) {
+ if (!wrlock_start(p, mdr)) {
ceph_assert(!p.is_remote_wrlock());
marker.message = "failed to wrlock, waiting";
goto out;