summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-11-17 19:55:30 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-12-12 23:54:28 +0100
commitdc24de82d61b1edc3d195badd178e7875ba9398f (patch)
treeffc8859e7adb046c72e818aaa6e52efa86ac5c9c /fs/ceph/caps.c
parent1e4ef0c6332bd90e6c70afc07b35dffaf1eab1a7 (diff)
downloadlinux-dc24de82d61b1edc3d195badd178e7875ba9398f.tar.gz
linux-dc24de82d61b1edc3d195badd178e7875ba9398f.tar.bz2
linux-dc24de82d61b1edc3d195badd178e7875ba9398f.zip
ceph: properly set issue_seq for cap release
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index b54af160526e..baea866a6751 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -3656,6 +3656,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
cap->cap_id = le64_to_cpu(h->cap_id);
cap->mseq = mseq;
cap->seq = seq;
+ cap->issue_seq = seq;
spin_lock(&session->s_cap_lock);
list_add_tail(&cap->session_caps,
&session->s_cap_releases);