diff options
| author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-10-09 14:11:58 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 17:25:07 +0300 |
| commit | 1864de94ec9d6e1ae4d481212847374df9b1be41 (patch) | |
| tree | 05bf1d0ff69e95206cd7b6950380ff558e24af11 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 63dee3a6c39a5bfa5f299ebb314f2e3e0273092b (diff) | |
| download | linux-1864de94ec9d6e1ae4d481212847374df9b1be41.tar.xz | |
lightnvm: pblk: stop recreating global caches
Pblk should not create a set of global caches every time
a pblk instance is created. The global caches should be
made available only when there is one or more pblk instances.
This patch bundles the global caches together with a kref
keeping track of whether the caches should be available or not.
Also, turn the global pblk lock into a mutex that explicitly
protects the caches (as this was the only purpose of the lock).
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
