aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/pci.c
diff options
context:
space:
mode:
authorMing Lin <ming.l@ssi.samsung.com>2016-02-10 10:03:31 -0800
committerJens Axboe <axboe@fb.com>2016-02-10 14:22:36 -0700
commit9f2482b91bcd02ac2999cf04b3fb1b89e1c4d559 (patch)
tree1771a4ecb198bf63271f081f0a3332830e718e7e /drivers/nvme/host/pci.c
parentnvme: move timeout variables to core.c (diff)
downloadlinux-dev-9f2482b91bcd02ac2999cf04b3fb1b89e1c4d559.tar.xz
linux-dev-9f2482b91bcd02ac2999cf04b3fb1b89e1c4d559.zip
nvme: split dev_list_lock
Split dev_list_lock into one in the core and one in the PCI driver. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Ming Lin <ming.l@ssi.samsung.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/pci.c')
-rw-r--r--drivers/nvme/host/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 53a99422d44d..54e79c035913 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -65,6 +65,7 @@ module_param(use_cmb_sqes, bool, 0644);
MODULE_PARM_DESC(use_cmb_sqes, "use controller's memory buffer for I/O SQes");
static LIST_HEAD(dev_list);
+static DEFINE_SPINLOCK(dev_list_lock);
static struct task_struct *nvme_thread;
static struct workqueue_struct *nvme_workq;
static wait_queue_head_t nvme_kthread_wait;