diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-11-29 06:22:50 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-12-26 18:08:25 +0300 |
commit | 3c1392d4c49962a31874af14ae9ff289cb2b3851 (patch) | |
tree | 4629b31ca81a312910c065f412db5ba89477de3d | |
parent | 87349cdad963163b55cf7d327f5d47a647339838 (diff) | |
download | linux-3c1392d4c49962a31874af14ae9ff289cb2b3851.tar.xz |
ceph: don't update importing cap's mseq when handing cap export
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>
-rw-r--r-- | fs/ceph/caps.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index f3496db4bb3e..a58666a3f8dd 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -3569,7 +3569,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) |