aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMing Lin <[email protected]>2016-04-25 14:20:19 -0700
committerJens Axboe <[email protected]>2016-05-02 09:16:13 -0600
commitb7b9c2278752e37dc7ae918cda823aa2a078e03b (patch)
tree12a57b6c848b6271d492040dd43d74be4d297f42 /tools/perf/scripts/python/export-to-postgresql.py
parent0bf77e9dbb5247ae159342db6f8fdb48aba24b56 (diff)
nvme: fix nvme_ns_remove() deadlock
On receipt of a namespace attribute changed AER, we acquire the namespace mutex lock before proceeding to scan and validate the namespace list. In case of namespace detach/delete command, nvme_ns_remove function deadlocks trying to acquire the already held lock. All callers, except nvme_remove_namespaces(), of nvme_ns_remove() already held namespaces_mutex. So we can simply fix the deadlock by not acquiring the mutex in nvme_ns_remove() and acquiring it in nvme_remove_namespaces(). Reported-by: Sunad Bhandary S <[email protected]> Signed-off-by: Ming Lin <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimerg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions