Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286235
b: refs/heads/master
c: 3f85d50
h: refs/heads/master
i:
  286233: 5d831ad
  286231: 9329473
v: v3
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent e29df02 commit 8449a19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e9f0e71150bf6277d0ea40bc8feb1338ddf13fd
refs/heads/master: 3f85d50b609e8a5ef151656210203a6e94c19538
5 changes: 5 additions & 0 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ static __devinit struct nvme_queue *nvme_create_queue(struct nvme_dev *dev,
int result;
struct nvme_queue *nvmeq = nvme_alloc_queue(dev, qid, cq_size, vector);

if (!nvmeq)
return NULL;

result = adapter_alloc_cq(dev, qid, nvmeq);
if (result < 0)
goto free_nvmeq;
Expand Down Expand Up @@ -655,6 +658,8 @@ static int __devinit nvme_configure_admin_queue(struct nvme_dev *dev)
dev->dbs = ((void __iomem *)dev->bar) + 4096;

nvmeq = nvme_alloc_queue(dev, 0, 64, 0);
if (!nvmeq)
return -ENOMEM;

aqa = nvmeq->q_depth - 1;
aqa |= aqa << 16;
Expand Down

0 comments on commit 8449a19

Please sign in to comment.