diff options
| author | Jianchao Wang <[email protected]> | 2018-02-12 12:54:45 +0000 |
|---|---|---|
| committer | Keith Busch <[email protected]> | 2018-02-14 00:09:50 +0000 |
| commit | 3fd176b754e992e1cdf1693ea8184626d1ed7671 (patch) | |
| tree | 6922ddd6c61233e01bbbe4b5be27f7dd065cb1fe /net/unix/af_unix.c | |
| parent | nvme: Don't use a stack buffer for keep-alive command (diff) | |
| download | kernel-3fd176b754e992e1cdf1693ea8184626d1ed7671.tar.gz kernel-3fd176b754e992e1cdf1693ea8184626d1ed7671.zip | |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
