projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d99e5
)
nvme: simplify nvme_req_qid()
author
Baolin Wang
<baolin.wang@linux.alibaba.com>
Tue, 27 Oct 2020 08:15:16 +0000
(16:15 +0800)
committer
Christoph Hellwig
<hch@lst.de>
Tue, 1 Dec 2020 19:36:34 +0000
(20:36 +0100)
Use the request's '->mq_hctx->queue_num' directly to simplify the
nvme_req_qid() function.
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/nvme.h
b/drivers/nvme/host/nvme.h
index
bc330bf
..
87867e9
100644
(file)
--- a/
drivers/nvme/host/nvme.h
+++ b/
drivers/nvme/host/nvme.h
@@
-178,7
+178,8
@@
static inline u16 nvme_req_qid(struct request *req)
{
if (!req->q->queuedata)
return 0;
- return blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(req)) + 1;
+
+ return req->mq_hctx->queue_num + 1;
}
/* The below value is the specific amount of delay needed before checking