diff options
author | Wenwei Tao <[email protected]> | 2016-01-12 07:49:25 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-01-12 08:21:16 -0700 |
commit | b262924be03d5d2ae735bc9a4b37eb2c613f61f8 (patch) | |
tree | d9128e64b6cd635084725a75d295c8aeb6ed6a35 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | d0ca798f960ad7d86f5186fe312c131d00563eb7 (diff) |
lightnvm: fix locking and mempool in rrpc_lun_gc
This patch fix two issues in rrpc_lun_gc
1. prio_list is protected by rrpc_lun's lock not nvm_lun's, so
acquire rlun's lock instead of lun's before operate on the list.
2. we delete block from prio_list before allocating gcb, but gcb
allocation may fail, we end without putting it back to the list,
this makes the block won't get reclaimed in the future. To solve
this issue, delete block after gcb allocation.
Signed-off-by: Wenwei Tao <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions