diff options
author | Jianchao Wang <jianchao.w.wang@oracle.com> | 2018-02-12 20:54:45 +0800 |
---|---|---|
committer | Keith Busch <keith.busch@intel.com> | 2018-02-13 17:09:50 -0700 |
commit | 3fd176b754e992e1cdf1693ea8184626d1ed7671 (patch) | |
tree | 6922ddd6c61233e01bbbe4b5be27f7dd065cb1fe /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 0a34e4668c508cbbc2d5ef2d9710b145e4c0b27d (diff) |
nvme: fix the deadlock in nvme_update_formats
nvme_update_formats will invoke nvme_ns_remove under namespaces_mutext.
The will cause deadlock because nvme_ns_remove will also require
the namespaces_mutext. Fix it by getting the ns entries which should
be removed under namespaces_mutext and invoke nvme_ns_remove out of
namespaces_mutext.
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions