diff options
| author | Liang Chen <[email protected]> | 2017-10-30 14:46:35 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2017-10-30 15:57:54 -0600 |
| commit | 330a4db89d39a6b43f36da16824eaa7a7509d34d (patch) | |
| tree | e55a4743d1c34bb9eab3b40a4aa9ee09408104fc /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | c157313791a999646901b3e3c6888514ebc36d62 (diff) | |
bcache: explicitly destroy mutex while exiting
mutex_destroy does nothing most of time, but it's better to call
it to make the code future proof and it also has some meaning
for like mutex debug.
As Coly pointed out in a previous review, bcache_exit() may not be
able to handle all the references properly if userspace registers
cache and backing devices right before bch_debug_init runs and
bch_debug_init failes later. So not exposing userspace interface
until everything is ready to avoid that issue.
Signed-off-by: Liang Chen <[email protected]>
Reviewed-by: Michael Lyle <[email protected]>
Reviewed-by: Coly Li <[email protected]>
Reviewed-by: Eric Wheeler <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions