Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a56371d9 authored by Yan, Zheng's avatar Yan, Zheng Committed by Sage Weil
Browse files

ceph: flush cap release queue when trimming session caps

parent 48193012
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1311,6 +1311,9 @@ static int trim_caps(struct ceph_mds_client *mdsc,
			trim_caps - session->s_trim_caps);
		session->s_trim_caps = 0;
	}

	ceph_add_cap_releases(mdsc, session);
	ceph_send_cap_releases(mdsc, session);
	return 0;
}