Skip to content

Commit 50f42c4

Browse files
batrickidryomov
authored andcommitted
ceph: correct ceph_mds_cap_item field name
The issue_seq is sent with bulk cap releases, not the current sequence number. See also ceph.git commit 655cddb7c9f3 ("include/ceph_fs: correct ceph_mds_cap_item field name"). Link: https://tracker.ceph.com/issues/66704 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 3500000 commit 50f42c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/ceph/mds_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ static void ceph_send_cap_releases(struct ceph_mds_client *mdsc,
23542354
item->ino = cpu_to_le64(cap->cap_ino);
23552355
item->cap_id = cpu_to_le64(cap->cap_id);
23562356
item->migrate_seq = cpu_to_le32(cap->mseq);
2357-
item->seq = cpu_to_le32(cap->issue_seq);
2357+
item->issue_seq = cpu_to_le32(cap->issue_seq);
23582358
msg->front.iov_len += sizeof(*item);
23592359

23602360
ceph_put_cap(mdsc, cap);

include/linux/ceph/ceph_fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ struct ceph_mds_cap_release {
822822
struct ceph_mds_cap_item {
823823
__le64 ino;
824824
__le64 cap_id;
825-
__le32 migrate_seq, seq;
825+
__le32 migrate_seq, issue_seq;
826826
} __attribute__ ((packed));
827827

828828
#define CEPH_MDS_LEASE_REVOKE 1 /* mds -> client */

0 commit comments

Comments
 (0)