diff options
| author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-01-08 17:24:27 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-17 16:16:00 -0800 |
| commit | 95e53ddd8240bad37df985a9ae2d2a07f49e6bf1 (patch) | |
| tree | 5e928f89e3c8cdbad12c6ccfa8594c6c14e9b46e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 38c977230c4947d1e99c558a603eb49666a42568 (diff) | |
staging: ion: always initialize the free list parameters
Currently we initialize the heap free_lock and free list size in
ion_heap_init_deferred_free, which is only called when the
ION_HEAP_FLAG_DEFER_FREE heap flag is given. However, the lock and size
are used in the shrinker path as well as the deferred free path, and we
can register a shrinker *without* enabling deferred freeing. So, if a
heap provides a shrinker but *doesn't* set the DEFER_FREE flag we will
use these parameters uninitialized (resulting in a spinlock bug and
broken shrinker accounting).
Fix these problems by initializing the free list parameters directly in
ion_device_add_heap, which is always called no matter which heap
features are being used.
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
