summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorJianchao Wang2018-02-12 13:54:44 +0100
committerJens Axboe2018-03-26 16:53:43 +0200
commit6f8e0d787e3727ed70116e3523f4ecb86887c000 (patch)
treef6a40039e4fc34a35c5775cd2b30cc8172340da1 /drivers/nvme/host/nvme.h
parentnvme-pci: quiesce IO queues prior to disabling device HMB accesses (diff)
downloadkernel-qcow2-linux-6f8e0d787e3727ed70116e3523f4ecb86887c000.tar.gz
kernel-qcow2-linux-6f8e0d787e3727ed70116e3523f4ecb86887c000.tar.xz
kernel-qcow2-linux-6f8e0d787e3727ed70116e3523f4ecb86887c000.zip
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 <keith.busch@intel.com> Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
0 files changed, 0 insertions, 0 deletions