aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorZhi Zhang <[email protected]>2018-01-24 13:24:33 +0000
committerIlya Dryomov <[email protected]>2018-01-29 17:36:12 +0000
commite30ee58121e34831b9665934d70dbc72ab0fe2fb (patch)
tree23b4eb7cb77f82d5326efbe3af44d152aa75a953 /tools/perf/scripts/python/mem-phys-addr.py
parentceph: fix race of queuing delayed caps (diff)
downloadkernel-e30ee58121e34831b9665934d70dbc72ab0fe2fb.tar.gz
kernel-e30ee58121e34831b9665934d70dbc72ab0fe2fb.zip
ceph: try to allocate enough memory for reserved caps
ceph_reserve_caps() may not reserve enough caps under high memory pressure, but it saved the needed caps number that expected to be reserved. When getting caps, crash would happen due to number mismatch. Now we will try to trim more caps when failing to allocate memory for caps need to be reserved, then try again. If still failing to allocate memory, return -ENOMEM. Signed-off-by: Zhi Zhang <[email protected]> Reviewed-by: "Yan, Zheng" <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions