History

blk-mq: cache request hardware queue mapping

We call blk_mq_map_queue() a lot, at least two times for each request per IO, sometimes more. Since we now have an indirect call as well in that function. cache the mapping so we don't have to re-call blk_mq_map_queue() for the same request multiple times.

Jens Axboe committed 8 years ago

Commit ea4f9951 parent 392546a7 files · +19 −40Browse files

Showing the changes to include/linux/blkdev.h (1 of 7 files). Show all

Unified · Split

include/linux/blkdev.h+1−0
@@ -129,6 +129,7 @@ enum mq_rq_state { · 128 unmodified lines
129129 struct request {
130130 struct request_queue *q;
131131 struct blk_mq_ctx *mq_ctx;
132+ struct blk_mq_hw_ctx *mq_hctx;
132133
133134 unsigned int cmd_flags; /* op and common flags */
134135 req_flags_t rq_flags;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t