Skip to content

Commit

Permalink
Merge pull request ceph#54912 from lxbsz/wip-63833
Browse files Browse the repository at this point in the history
pacific: mds: set the loner to true for LOCK_EXCL_XSYN

Reviewed-by: Kotresh HR khiremat@redhat.com
  • Loading branch information
yuriw authored Jan 3, 2024
2 parents 89a1ef2 + 20515bc commit cda00bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const struct sm_state_t filelock[LOCK_MAX] = {
[LOCK_XSYN_EXCL] = { LOCK_EXCL, true, LOCK_LOCK, AUTH, 0, XCL, 0, 0, 0, 0, 0,CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0 },

[LOCK_XSYN] = { 0, true, LOCK_LOCK, AUTH, AUTH,AUTH,XCL, 0, 0, 0, 0,CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0 },
[LOCK_EXCL_XSYN] = { LOCK_XSYN, false, LOCK_LOCK, 0, 0, XCL, 0, 0, 0, 0, 0,CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0 },
[LOCK_EXCL_XSYN] = { LOCK_XSYN, true, LOCK_LOCK, 0, 0, XCL, 0, 0, 0, 0, 0,CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0 },

[LOCK_PRE_SCAN] = { LOCK_SCAN, false, LOCK_LOCK, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0 },
[LOCK_SCAN] = { LOCK_LOCK, false, LOCK_LOCK, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0 },
Expand Down

0 comments on commit cda00bb

Please sign in to comment.