Commit 84115d6d authored by Baolin Wang's avatar Baolin Wang Committed by Christoph Hellwig
Browse files

nvme: simplify nvme_req_qid()



Use the request's '->mq_hctx->queue_num' directly to simplify the
nvme_req_qid() function.

Signed-off-by: default avatarBaolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 03d99e5d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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