diff options
author | David Hildenbrand <[email protected]> | 2023-07-13 16:55:50 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-08-10 15:51:46 -0400 |
commit | a31648fd4f96fbe0a4d0aeb16b57a2405c6943c0 (patch) | |
tree | 94343593e5a7762e4bf9c415e52f1dd824caf947 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | ddf409851461f515cc32974714b73efe2e012bde (diff) |
virtio-mem: keep retrying on offline_and_remove_memory() errors in Sub Block Mode (SBM)
In case offline_and_remove_memory() fails in SBM, we leave a completely
unplugged Linux memory block stick around until we try plugging memory
again. We won't try removing that memory block again.
offline_and_remove_memory() may, for example, fail if we're racing with
another alloc_contig_range() user, if allocating temporary memory fails,
or if some memory notifier rejected the offlining request.
Let's handle that case better, by simple retrying to offline and remove
such memory.
Tested using CONFIG_MEMORY_NOTIFIER_ERROR_INJECT.
Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions