ceph: update wanted caps after resuming stale session
authorYan, Zheng <zyan@redhat.com>
Mon, 10 Dec 2018 08:35:09 +0000 (16:35 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Dec 2018 15:08:36 +0000 (16:08 +0100)
commitd2f8bb27c87945ab696bdaea25b0465dee94fb6d
tree30fb1b0d4e6d29fb939ad52b68ad1294d63ca537
parentfdac94fab7995ebc52ff9c5b6247133c67a7564a
ceph: update wanted caps after resuming stale session

mds contains an optimization, it does not re-issue stale caps if
client does not want any cap.

A special case of the optimization is that client wants some caps,
but skipped updating 'wanted'. For this case, client needs to update
'wanted' when stale session get renewed.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h