]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.93/ceph-don-t-update-importing-cap-s-mseq-when-handing-cap-export.patch
Linux 4.14.93
[thirdparty/kernel/stable-queue.git] / releases / 4.14.93 / ceph-don-t-update-importing-cap-s-mseq-when-handing-cap-export.patch
1 From 3c1392d4c49962a31874af14ae9ff289cb2b3851 Mon Sep 17 00:00:00 2001
2 From: "Yan, Zheng" <zyan@redhat.com>
3 Date: Thu, 29 Nov 2018 11:22:50 +0800
4 Subject: ceph: don't update importing cap's mseq when handing cap export
5
6 From: Yan, Zheng <zyan@redhat.com>
7
8 commit 3c1392d4c49962a31874af14ae9ff289cb2b3851 upstream.
9
10 Updating mseq makes client think importer mds has accepted all prior
11 cap messages and importer mds knows what caps client wants. Actually
12 some cap messages may have been dropped because of mseq mismatch.
13
14 If mseq is left untouched, importing cap's mds_wanted later will get
15 reset by cap import message.
16
17 Cc: stable@vger.kernel.org
18 Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
19 Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 fs/ceph/caps.c | 1 -
24 1 file changed, 1 deletion(-)
25
26 --- a/fs/ceph/caps.c
27 +++ b/fs/ceph/caps.c
28 @@ -3438,7 +3438,6 @@ retry:
29 tcap->cap_id = t_cap_id;
30 tcap->seq = t_seq - 1;
31 tcap->issue_seq = t_seq - 1;
32 - tcap->mseq = t_mseq;
33 tcap->issued |= issued;
34 tcap->implemented |= issued;
35 if (cap == ci->i_auth_cap)