Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286293
b: refs/heads/master
c: 21075bd
h: refs/heads/master
i:
  286291: b3a130d
v: v3
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent ef7ad0b commit e824233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 09a58f536436efed02ead722e835cb4ce7674afc
refs/heads/master: 21075bdee0a6f56058920d889df4ae561bfed754
7 changes: 5 additions & 2 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,13 @@ static unsigned long free_cmdid(struct nvme_queue *nvmeq, int cmdid)
return data;
}

static void cancel_cmdid_data(struct nvme_queue *nvmeq, int cmdid)
static unsigned long cancel_cmdid(struct nvme_queue *nvmeq, int cmdid)
{
unsigned long data;
struct nvme_cmd_info *info = nvme_cmd_info(nvmeq);
data = info[cmdid].ctx;
info[cmdid].ctx = CMD_CTX_CANCELLED;
return data;
}

static struct nvme_queue *get_nvmeq(struct nvme_ns *ns)
Expand Down Expand Up @@ -667,7 +670,7 @@ static irqreturn_t nvme_irq_check(int irq, void *data)
static void nvme_abort_command(struct nvme_queue *nvmeq, int cmdid)
{
spin_lock_irq(&nvmeq->q_lock);
cancel_cmdid_data(nvmeq, cmdid);
cancel_cmdid(nvmeq, cmdid);
spin_unlock_irq(&nvmeq->q_lock);
}

Expand Down

0 comments on commit e824233

Please sign in to comment.