提交 3dee63c7 编写于 作者: S Sagi Grimberg 提交者: Christoph Hellwig

nvme-rdma: get rid of unused ctrl lock

Signed-off-by: NSagi Grimberg <sagi@grimberg.me>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 a29001c5
...@@ -103,9 +103,6 @@ struct nvme_rdma_queue { ...@@ -103,9 +103,6 @@ struct nvme_rdma_queue {
}; };
struct nvme_rdma_ctrl { struct nvme_rdma_ctrl {
/* read and written in the hot path */
spinlock_t lock;
/* read only in the hot path */ /* read only in the hot path */
struct nvme_rdma_queue *queues; struct nvme_rdma_queue *queues;
u32 queue_count; u32 queue_count;
...@@ -1921,7 +1918,6 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev, ...@@ -1921,7 +1918,6 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev,
INIT_WORK(&ctrl->err_work, nvme_rdma_error_recovery_work); INIT_WORK(&ctrl->err_work, nvme_rdma_error_recovery_work);
INIT_WORK(&ctrl->delete_work, nvme_rdma_del_ctrl_work); INIT_WORK(&ctrl->delete_work, nvme_rdma_del_ctrl_work);
INIT_WORK(&ctrl->reset_work, nvme_rdma_reset_ctrl_work); INIT_WORK(&ctrl->reset_work, nvme_rdma_reset_ctrl_work);
spin_lock_init(&ctrl->lock);
ctrl->queue_count = opts->nr_io_queues + 1; /* +1 for admin queue */ ctrl->queue_count = opts->nr_io_queues + 1; /* +1 for admin queue */
ctrl->ctrl.sqsize = opts->queue_size - 1; ctrl->ctrl.sqsize = opts->queue_size - 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册