diff options
author | Chengguang Xu <cgxu519@icloud.com> | 2018-02-24 18:36:02 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 10:12:47 +0200 |
commit | 79cd674aed7363a043222af3c8f97d0ea0a078cf (patch) | |
tree | 86fe0a19a23723b1b8ef0b0d81ebe18b04c8d4d1 /block/kyber-iosched.c | |
parent | b517c1d87faafba0c33a38ffdd551e8b399f0a31 (diff) | |
download | linux-79cd674aed7363a043222af3c8f97d0ea0a078cf.tar.bz2 |
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>
Diffstat (limited to 'block/kyber-iosched.c')
0 files changed, 0 insertions, 0 deletions