Skip to content

Commit 2379068

Browse files
committed
mds: explain clients retaining Fb during xlock
Fixes: https://tracker.ceph.com/issues/64198 Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 2996d13 commit 2379068

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mds/locks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const struct sm_state_t filelock[LOCK_MAX] = {
9898
[LOCK_MIX_LOCK2] = { LOCK_LOCK, false, LOCK_LOCK, 0, 0, REQ, 0, 0, 0, 0, 0,0,0,0 },
9999
[LOCK_XSYN_LOCK] = { LOCK_LOCK, true, LOCK_LOCK, AUTH, 0, 0, XCL, 0, 0, 0, 0,CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0 },
100100

101+
/* Keep Fcb to allow rapid recall of Fw. The client can keep buffered writes / cached reads. */
101102
[LOCK_PREXLOCK] = { LOCK_LOCK, false, LOCK_LOCK, 0, XCL, 0, 0, 0, 0, ANY, CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0,0 },
102103
[LOCK_XLOCK] = { LOCK_LOCK, false, LOCK_LOCK, 0, XCL, 0, 0, 0, 0, 0, CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,0,0 },
103104
[LOCK_XLOCKDONE] = { LOCK_LOCK, false, LOCK_LOCK, XCL, XCL, XCL, 0, 0, XCL, 0, CEPH_CAP_GCACHE|CEPH_CAP_GBUFFER,0,CEPH_CAP_GSHARED,0 },

0 commit comments

Comments
 (0)