aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorIgor Konopko <[email protected]>2019-05-04 20:38:09 +0200
committerJens Axboe <[email protected]>2019-05-06 10:19:19 -0600
commit843f2edbdde085b4d2764baf6fd8a1fccb1ab26a (patch)
treeed19a493affd72fbfafbc763cf3149f0d441aa7c /tools/perf/scripts/python/exported-sql-viewer.py
parente69397ea05ce0263e3ee72fa8f6f70d2d9a561a7 (diff)
lightnvm: do not remove instance under global lock
Currently all the target instances are removed under global nvm_lock. This was needed to ensure that nvm_dev struct will not be freed by hot unplug event during target removal. However, current implementation has some drawbacks, since the same lock is used when new nvme subsystem is registered, so we can have a situation, that due to long process of target removal on drive A, registration (and listing in OS) of the drive B will take a lot of time, since it will wait for that lock. Now when we have kref which ensures that nvm_dev will not be freed in the meantime, we can easily get rid of this lock for a time when we are removing nvm targets. Signed-off-by: Igor Konopko <[email protected]> Reviewed-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions