]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit270baabcc9a86ea75fd97d6404f0faaefd4cefde
treeb1ce93551bd3f50d64aef81f6cb2737abf5eb8e5
parent3f23a84fb07cb811ebe796e931770875dd509b8a
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