]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: synchronize access to ctrl->namespaces
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Dec 2015 14:27:00 +0000 (15:27 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:52 +0000 (13:40 -0700)
commit185f0f10a27dec6906699157da505dfe5b90ecc3
tree45c379acbd949ab59945d4fda08919d32c6cfa75
parent1a176e454bca7cf57ecacbb3ef5822a2881df041
nvme: synchronize access to ctrl->namespaces

Currently traversal and modification of ctrl->namespaces happens completely
unsynchronized, which can be fixed by the addition of a simple mutex.

Note: nvme_dev_ioctl will be handled in the next patch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 69d3b8ac15a5eb938e6a01909f6cc8ae4b5d3a17)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h