]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: synchronize access to ctrl->namespaces
authorAshok Vairavan <ashok.vairavan@oracle.com>
Mon, 10 Oct 2016 19:15:14 +0000 (12:15 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 16 Oct 2016 03:39:02 +0000 (20:39 -0700)
commit47c24fed2b4b0c5d62936cbd337930424be0710f
treeedb4cb27e24cfd1348c08d77ddacab2d0145c6c9
parent77b7ebc5f8cf950257ce9f39a7a107bb82a43627
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: 24583236
Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c