ceph: trigger the reclaim work once there has enough pending caps
authorXiubo Li <xiubli@redhat.com>
Tue, 26 Nov 2019 12:32:22 +0000 (07:32 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 9 Dec 2019 19:55:10 +0000 (20:55 +0100)
commitbba1560bd4a46aa0d16bb7d81abd9d0eb47dea36
tree6838e4bd708e1e41839cbd14f91581b884ba1936
parent3a3430affce5de301fc8e6e50fa3543d7597820e
ceph: trigger the reclaim work once there has enough pending caps

The nr in ceph_reclaim_caps_nr() is very possibly larger than 1,
so we may miss it and the reclaim work couldn't triggered as expected.

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