commit | 79cd674aed7363a043222af3c8f97d0ea0a078cf | [log] [tgz] |
---|---|---|
author | Chengguang Xu <cgxu519@icloud.com> | Sat Feb 24 18:36:02 2018 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Apr 02 10:12:47 2018 +0200 |
tree | 86fe0a19a23723b1b8ef0b0d81ebe18b04c8d4d1 | |
parent | b517c1d87faafba0c33a38ffdd551e8b399f0a31 [diff] |
ceph: optimizing cap reservation When caps_avail_count is in a low level, most newly trimmed caps will probably go into ->caps_list and caps_avail_count will be increased. Hence after trimming, should recheck caps_avail_count to effectly reuse newly trimmed caps. Also, when releasing unnecessary caps follow the same rule of ceph_put_cap. Signed-off-by: Chengguang Xu <cgxu519@icloud.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>