Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286314
b: refs/heads/master
c: 040a93b
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox committed Jan 10, 2012
1 parent f80c170 commit 535243c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c2f5b65020869215814df03c3941dac9436f99fb
refs/heads/master: 040a93b52a9eee8177ebaf2ba0ee0f9f518d1bf8
8 changes: 4 additions & 4 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ static void *cancel_cmdid(struct nvme_queue *nvmeq, int cmdid,
return ctx;
}

static struct nvme_queue *get_nvmeq(struct nvme_ns *ns)
static struct nvme_queue *get_nvmeq(struct nvme_dev *dev)
{
return ns->dev->queues[get_cpu() + 1];
return dev->queues[get_cpu() + 1];
}

static void put_nvmeq(struct nvme_queue *nvmeq)
Expand Down Expand Up @@ -606,7 +606,7 @@ static int nvme_submit_bio_queue(struct nvme_queue *nvmeq, struct nvme_ns *ns,
static int nvme_make_request(struct request_queue *q, struct bio *bio)
{
struct nvme_ns *ns = q->queuedata;
struct nvme_queue *nvmeq = get_nvmeq(ns);
struct nvme_queue *nvmeq = get_nvmeq(ns->dev);
int result = -EBUSY;

spin_lock_irq(&nvmeq->q_lock);
Expand Down Expand Up @@ -1103,7 +1103,7 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio)
/* XXX: metadata */
prps = nvme_setup_prps(dev, &c.common, sg, &length, GFP_KERNEL);

nvmeq = get_nvmeq(ns);
nvmeq = get_nvmeq(dev);
/*
* Since nvme_submit_sync_cmd sleeps, we can't keep preemption
* disabled. We may be preempted at any point, and be rescheduled
Expand Down

0 comments on commit 535243c

Please sign in to comment.