ceph: properly set issue_seq for cap release

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-11-17 19:55:30 +08:00 committed by Ilya Dryomov
parent 1e4ef0c633
commit dc24de82d6

View file

@ -3656,6 +3656,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
cap->cap_id = le64_to_cpu(h->cap_id); cap->cap_id = le64_to_cpu(h->cap_id);
cap->mseq = mseq; cap->mseq = mseq;
cap->seq = seq; cap->seq = seq;
cap->issue_seq = seq;
spin_lock(&session->s_cap_lock); spin_lock(&session->s_cap_lock);
list_add_tail(&cap->session_caps, list_add_tail(&cap->session_caps,
&session->s_cap_releases); &session->s_cap_releases);