aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJianchao Wang <[email protected]>2018-02-12 20:54:44 +0800
committerJens Axboe <[email protected]>2018-03-26 08:53:43 -0600
commit6f8e0d787e3727ed70116e3523f4ecb86887c000 (patch)
treef6a40039e4fc34a35c5775cd2b30cc8172340da1 /tools/perf/scripts/python
parent9a915a5be7dc320743034a17394e08eb438baf33 (diff)
nvme: fix the dangerous reference of namespaces list
nvme_remove_namespaces and nvme_remove_invalid_namespaces reference the ctrl->namespaces list w/o holding namespaces_mutext. It is ok to invoke nvme_ns_remove there, but what if there is others. To be safer, reference the ctrl->namespaces list under namespaces_mutext. Reviewed-by: Keith Busch <[email protected]> Signed-off-by: Jianchao Wang <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions