Skip to content

Commit 9797226

Browse files
ukernelgregkh
authored andcommitted
ceph: don't update importing cap's mseq when handing cap export
commit 3c1392d upstream. Updating mseq makes client think importer mds has accepted all prior cap messages and importer mds knows what caps client wants. Actually some cap messages may have been dropped because of mseq mismatch. If mseq is left untouched, importing cap's mds_wanted later will get reset by cap import message. Cc: stable@vger.kernel.org Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dc8408e commit 9797226

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/ceph/caps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3566,7 +3566,6 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
35663566
tcap->cap_id = t_cap_id;
35673567
tcap->seq = t_seq - 1;
35683568
tcap->issue_seq = t_seq - 1;
3569-
tcap->mseq = t_mseq;
35703569
tcap->issued |= issued;
35713570
tcap->implemented |= issued;
35723571
if (cap == ci->i_auth_cap)

0 commit comments

Comments
 (0)