Commit 21075bde authored by Matthew Wilcox's avatar Matthew Wilcox

NVMe: Rename cancel_cmdid_data to cancel_cmdid

The trailing '_data' on the end was annoying and inconsistent.  Also, make
it actually return the data since this is needed for timing out commands.
Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 09a58f53
......@@ -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)
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment