summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-11-29 11:22:50 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-13 10:07:12 +0100
commitde7700c6e16c80a6cd78dcda95bce7ba1a74f099 (patch)
treec15db004e776f8b20f5b7d71c5a11b3d851792e5 /fs/ceph
parentd5b64fa4b0a4ed8e6e63be68354f3598c802a167 (diff)
downloadlinux-stable-de7700c6e16c80a6cd78dcda95bce7ba1a74f099.tar.gz
linux-stable-de7700c6e16c80a6cd78dcda95bce7ba1a74f099.tar.bz2
linux-stable-de7700c6e16c80a6cd78dcda95bce7ba1a74f099.zip
ceph: don't update importing cap's mseq when handing cap export
commit 3c1392d4c49962a31874af14ae9ff289cb2b3851 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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/caps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index cefca661464b..7ed2bfedf142 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -2830,7 +2830,6 @@ retry:
tcap->cap_id = t_cap_id;
tcap->seq = t_seq - 1;
tcap->issue_seq = t_seq - 1;
- tcap->mseq = t_mseq;
tcap->issued |= issued;
tcap->implemented |= issued;
if (cap == ci->i_auth_cap)