Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286269
b: refs/heads/master
c: 740216f
h: refs/heads/master
i:
  286267: 38e76da
v: v3
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 8bbdab8 commit eb5b80a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b348b7d54368c87811907a8e88f0d96713c43009
refs/heads/master: 740216fc59cba54f65187c9ed92f29bce3cf8778
14 changes: 10 additions & 4 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,8 @@ static int nvme_kthread(void *data)
int i;
for (i = 0; i < dev->queue_count; i++) {
struct nvme_queue *nvmeq = dev->queues[i];
if (!nvmeq)
continue;
spin_lock_irq(&nvmeq->q_lock);
if (nvme_process_cq(nvmeq))
printk("process_cq did something\n");
Expand Down Expand Up @@ -1437,17 +1439,21 @@ static int __devinit nvme_probe(struct pci_dev *pdev,
goto unmap;
dev->queue_count++;

result = nvme_dev_add(dev);
if (result)
goto delete;

spin_lock(&dev_list_lock);
list_add(&dev->node, &dev_list);
spin_unlock(&dev_list_lock);

result = nvme_dev_add(dev);
if (result)
goto delete;

return 0;

delete:
spin_lock(&dev_list_lock);
list_del(&dev->node);
spin_unlock(&dev_list_lock);

nvme_free_queues(dev);
unmap:
iounmap(dev->bar);
Expand Down

0 comments on commit eb5b80a

Please sign in to comment.