]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: remove calculating caps after adding revokes back 52852/head
authorXiubo Li <xiubli@redhat.com>
Fri, 23 Jun 2023 14:44:23 +0000 (22:44 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 13 Oct 2023 00:40:22 +0000 (08:40 +0800)
commite300501cc928de93dc1c93ca269415ffff590ca2
treec0b94e47a568749256086ca0e1c42b24e505cd20
parent1c14604d0a1c9925c07b465dbd262dfa9c89ad4e
mds: remove calculating caps after adding revokes back

The calc_issued() makes no sense and will blindly set the 'issued'
to the 'pending', which is incorrect.

For the cap update msg it will pass the client's 'implemented' caps
to MDS, and MDS will use the 'implemented' to calculate the 'issued'
and 'pending' members and also will adjust the revoke list.

The confirm_receipt() has already correctly calculating the 'issued'
and 'pending' members. And after add the cap back to the revoke list
we should mark it notable, which will move the cap object to the
front of session list.

Fixes: https://tracker.ceph.com/issues/61781
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b6e2681ebd87ccbc964d0cb4758a26748d517fcf)
src/mds/Capability.cc