ceph: always renew caps if mds_wanted is insufficient
authorYan, Zheng <zyan@redhat.com>
Thu, 5 Mar 2020 12:20:59 +0000 (20:20 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:42 +0000 (12:42 +0200)
commitc0e385b1067a9d1d6558d58a2f4d56b4db787177
treeb1ce93551bd3f50d64aef81f6cb2737abf5eb8e5
parent3313f66a57ed73a47162af642e2c8d3995cae058
ceph: always renew caps if mds_wanted is insufficient

Original code only renews caps for inodes with CEPH_I_CAP_DROPPED flag,
which indicates that mds has closed the session and caps were dropped.
Remove this flag in preparation for not requesting caps for idle open
files.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/super.h