diff options
author | Chengguang Xu <cgxu519@icloud.com> | 2018-02-23 12:09:38 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 11:12:46 +0300 |
commit | b884014a91a49ed0e7198d276b28887cc48363bd (patch) | |
tree | 5bef0732e3736d68dbb5c57f60bc532d3fe74d40 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2f87877b8f29a4aa0000a2e3cdf806ac645500e (diff) | |
download | linux-b884014a91a49ed0e7198d276b28887cc48363bd.tar.xz |
ceph: adding protection for showing cap reservation info
Adding spinlock protection during getting cap reservation
ralated fields so that the numbers match below BUG_ON condition
in the code.
BUG_ON(mdsc->caps_total_count != mdsc->caps_use_count +
mdsc->caps_reserve_count +
mdsc->caps_avail_count);
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions